Skip to content

Commit 91b0b1f

Browse files
committed
Move CA2007 exclusion to editor config
1 parent 7fad647 commit 91b0b1f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/NServiceBus.Transport.SqlServer.UnitTests/.editorconfig

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
[*.cs]
22

3+
# Justification: Test project
4+
dotnet_diagnostic.CA2007.severity = none
5+
36
# Justification: Tests don't support cancellation and don't need to forward IMessageHandlerContext.CancellationToken
47
dotnet_diagnostic.NSB0002.severity = suggestion
58

src/NServiceBus.Transport.SqlServer.UnitTests/Receiving/RepeatedFailuresOverTimeCircuitBreakerTests.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ namespace NServiceBus.Transport.SqlServer.UnitTests.Receiving
88
using NUnit.Framework;
99
using NServiceBus.Transport.SqlServer;
1010

11-
#pragma warning disable CA2007 // Consider calling ConfigureAwait on the awaited task
12-
1311
// Ideally the circuit breaker would use a time provider to allow for easier testing but that would require a significant refactor
1412
// and we want keep the changes to a minimum for now to allow backporting to older versions.
1513
[TestFixture]
@@ -222,5 +220,4 @@ public async Task Should_trigger_after_multiple_failures_and_timeout()
222220
Assert.That(triggerActionCalled, Is.True, "The trigger action should be called after repeated failures and timeout.");
223221
}
224222
}
225-
}
226-
#pragma warning restore CA2007 // Consider calling ConfigureAwait on the awaited task
223+
}

0 commit comments

Comments
 (0)