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

Commit e74405b

Browse files
committed
quic: update test-quic-statelessreset to verify counter
PR-URL: #332 Reviewed-By: Anna Henningsen <[email protected]>
1 parent 32b2a81 commit e74405b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/parallel/test-quic-statelessreset.js

+5
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,11 @@ server.on('session', common.mustCall((session) => {
4242
session.on('close', common.mustCall());
4343
}));
4444

45+
server.on('close', common.mustCall(() => {
46+
// Verify stats recording
47+
assert.strictEqual(server.statelessResetCount, 1n);
48+
}));
49+
4550
server.on('ready', common.mustCall(() => {
4651
const endpoint = server.endpoints[0];
4752

0 commit comments

Comments
 (0)