From ef8fb2dd0b367bce24b5b75816f44f2dbb63d253 Mon Sep 17 00:00:00 2001 From: Flaminel Date: Wed, 6 May 2026 10:49:16 +0300 Subject: [PATCH] Fix flaky unit tests (#604) --- .../Features/DownloadRemover/QueueItemRemoverTests.cs | 2 ++ .../Cleanuparr.Infrastructure.Tests/Services/StrikerTests.cs | 3 +++ 2 files changed, 5 insertions(+) diff --git a/code/backend/Cleanuparr.Infrastructure.Tests/Features/DownloadRemover/QueueItemRemoverTests.cs b/code/backend/Cleanuparr.Infrastructure.Tests/Features/DownloadRemover/QueueItemRemoverTests.cs index 5b06fa6a..79acf5af 100644 --- a/code/backend/Cleanuparr.Infrastructure.Tests/Features/DownloadRemover/QueueItemRemoverTests.cs +++ b/code/backend/Cleanuparr.Infrastructure.Tests/Features/DownloadRemover/QueueItemRemoverTests.cs @@ -22,10 +22,12 @@ using Microsoft.Extensions.Options; using NSubstitute; using NSubstitute.ExceptionExtensions; using Shouldly; +using Cleanuparr.Infrastructure.Tests.Features.Jobs.Integration; using Xunit; namespace Cleanuparr.Infrastructure.Tests.Features.DownloadRemover; +[Collection(IntegrationTestCollection.Name)] public class QueueItemRemoverTests : IDisposable { private readonly ILogger _logger; diff --git a/code/backend/Cleanuparr.Infrastructure.Tests/Services/StrikerTests.cs b/code/backend/Cleanuparr.Infrastructure.Tests/Services/StrikerTests.cs index 4591b8c9..feedf9c9 100644 --- a/code/backend/Cleanuparr.Infrastructure.Tests/Services/StrikerTests.cs +++ b/code/backend/Cleanuparr.Infrastructure.Tests/Services/StrikerTests.cs @@ -14,8 +14,11 @@ using NSubstitute; using Shouldly; using Xunit; +using Cleanuparr.Infrastructure.Tests.Features.Jobs.Integration; + namespace Cleanuparr.Infrastructure.Tests.Services; +[Collection(IntegrationTestCollection.Name)] public class StrikerTests : IDisposable { private readonly EventsContext _strikerContext;