Skip to content
This repository has been archived by the owner on Aug 11, 2020. It is now read-only.

Commit

Permalink
quic: fix test
Browse files Browse the repository at this point in the history
PR-URL: #341
Reviewed-By: Anna Henningsen <anna@addaleax.net>
  • Loading branch information
jasnell committed Feb 12, 2020
1 parent 0ba4b5d commit 4f0c282
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/parallel/test-quic-quicsession-openstream-pending.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@ const options = { key, cert, ca, alpn: 'meow' };
stream.on('data', (chunk) => data += chunk);
await once(stream, 'end');
assert.strictEqual(data, 'Hello!');
server.close();
client.close();
}));
}));

Expand All @@ -48,6 +46,9 @@ const options = { key, cert, ca, alpn: 'meow' };

await once(stream, 'close');

server.close();
client.close();

await Promise.allSettled([
once(server, 'close'),
once(client, 'close')
Expand Down

0 comments on commit 4f0c282

Please sign in to comment.