Skip to content

Commit 074e8f0

Browse files
authored
Fixed outerloop tests after #60181 (#60465)
1 parent 0d350e9 commit 074e8f0

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/libraries/System.Net.Quic/tests/FunctionalTests/MsQuicTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -432,7 +432,7 @@ public async Task SetListenerTimeoutWorksWithSmallTimeout()
432432
listenerOptions.ListenEndPoint = new IPEndPoint(IPAddress.Loopback, 0);
433433

434434
(QuicConnection clientConnection, QuicConnection serverConnection) = await CreateConnectedQuicConnection(null, listenerOptions);
435-
await Assert.ThrowsAsync<QuicOperationAbortedException>(async () => await serverConnection.AcceptStreamAsync().AsTask().WaitAsync(TimeSpan.FromSeconds(100)));
435+
await Assert.ThrowsAsync<QuicConnectionAbortedException>(async () => await serverConnection.AcceptStreamAsync().AsTask().WaitAsync(TimeSpan.FromSeconds(100)));
436436
serverConnection.Dispose();
437437
clientConnection.Dispose();
438438
}

src/libraries/System.Net.Quic/tests/FunctionalTests/QuicConnectionTests.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ await RunClientServer(
215215
using QuicStream clientStream = clientConnection.OpenBidirectionalStream();
216216
await DoWrites(clientStream, writesBeforeClose);
217217

218-
// Wait for peer to receive data
218+
// Wait for peer to receive data
219219
await sync.WaitAsync();
220220

221221
await clientConnection.CloseAsync(ExpectedErrorCode);
@@ -262,7 +262,7 @@ await RunClientServer(
262262
using QuicStream clientStream = clientConnection.OpenBidirectionalStream();
263263
await DoWrites(clientStream, writesBeforeClose);
264264

265-
// Wait for peer to receive data
265+
// Wait for peer to receive data
266266
await sync.WaitAsync();
267267

268268
clientConnection.Dispose();
@@ -279,8 +279,8 @@ await RunClientServer(
279279

280280
// The client has done an abortive shutdown of the connection, which means we are not notified that the connection has closed.
281281
// But the connection idle timeout should kick in and eventually we will get exceptions.
282-
await Assert.ThrowsAsync<QuicOperationAbortedException>(async () => await serverStream.ReadAsync(new byte[1]));
283-
await Assert.ThrowsAsync<QuicOperationAbortedException>(async () => await serverStream.WriteAsync(new byte[1]));
282+
await Assert.ThrowsAsync<QuicConnectionAbortedException>(async () => await serverStream.ReadAsync(new byte[1]));
283+
await Assert.ThrowsAsync<QuicConnectionAbortedException>(async () => await serverStream.WriteAsync(new byte[1]));
284284
}, listenerOptions: listenerOptions);
285285
}
286286
}

0 commit comments

Comments
 (0)