We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6306816 commit c04ec4bCopy full SHA for c04ec4b
src/libraries/System.Net.Quic/tests/FunctionalTests/QuicConnectionTests.cs
@@ -145,6 +145,26 @@ await RunClientServer(
145
});
146
}
147
148
+ [Fact]
149
+ public async Task DisposeAfterCloseTaskStored()
150
+ {
151
+ using var sync = new SemaphoreSlim(0);
152
+
153
+ await RunClientServer(
154
+ async clientConnection =>
155
156
+ var cts = new CancellationTokenSource();
157
+ var task = clientConnection.CloseAsync(0).AsTask();
158
+ await clientConnection.DisposeAsync();
159
+ sync.Release();
160
+ },
161
+ async serverConnection =>
162
163
+ await sync.WaitAsync();
164
+ await serverConnection.DisposeAsync();
165
+ });
166
+ }
167
168
[Fact]
169
public async Task ConnectionClosedByPeer_WithPendingAcceptAndConnect_PendingAndSubsequentThrowConnectionAbortedException()
170
{
0 commit comments