Skip to content

Commit 935468a

Browse files
jasnelladuh95
authored andcommitted
test: fixup quic tests
Signed-off-by: James M Snell <jasnell@gmail.com> PR-URL: #63267 Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
1 parent fe3639a commit 935468a

2 files changed

Lines changed: 2 additions & 8 deletions

File tree

‎test/parallel/test-quic-callback-error-ondatagram-async.mjs‎

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,6 @@ await clientSession.opened;
3838
awaitclientSession.sendDatagram(newUint8Array([1,2,3]));
3939

4040
awaitserverDone.promise;
41-
// The server session was destroyed abruptly (no CONNECTION_CLOSE sent).
42-
// The client may receive a stateless reset if it sends any packet
43-
// before its idle timeout fires, so closed may reject.
44-
awaitassert.rejects(clientSession.closed,{code: 'ERR_QUIC_TRANSPORT_ERROR'});
41+
awaitclientSession.closed;
4542
serverEndpoint.close();
4643
awaitserverEndpoint.closed;

‎test/parallel/test-quic-callback-error-ondatagram.mjs‎

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,5 @@ await clientSession.opened;
4141
awaitclientSession.sendDatagram(newUint8Array([1,2,3]));
4242

4343
awaitserverDone.promise;
44-
// The server session was destroyed abruptly (no CONNECTION_CLOSE sent).
45-
// The client may receive a stateless reset if it sends any packet
46-
// before its idle timeout fires, so closed may reject.
47-
awaitrejects(clientSession.closed,{code: 'ERR_QUIC_TRANSPORT_ERROR'});
44+
awaitclientSession.closed;
4845
awaitserverEndpoint.close();

0 commit comments

Comments
 (0)