Skip to content

Commit 1453eb9

Browse files
Suppress CA2012 warning for ChannelClosed method
Add suppression for CA2012 in ExceptionTests.ChannelClosed to ensure synchronous operation. Wrap with IDE0079 disable/enable to prevent unnecessary suppression warning.
1 parent 1abdea6 commit 1453eb9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Open.ChannelExtensions.Tests/ExceptionTests.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,9 @@ await range
9696
}
9797

9898
[Fact]
99+
#pragma warning disable IDE0079 // Remove unnecessary suppression
99100
[SuppressMessage("Reliability", "CA2012:Use ValueTasks correctly", Justification = "Needs to happen synchronously")]
101+
#pragma warning restore IDE0079 // Remove unnecessary suppression
100102
public static void ChannelClosed()
101103
{
102104
var channel = Channel.CreateBounded<int>(new BoundedChannelOptions(1000)

0 commit comments

Comments
 (0)