Skip to content

Commit 21e9888

Browse files
apapirovskievanlucas
authored andcommitted
test: check session timeout in http2
Two instances of a similar test exist, with both testing the timeout on the stream and neither on the session. Adjust one of them to test the session timeout instead. PR-URL: #16754 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Colin Ihrig <[email protected]>
1 parent be266bd commit 21e9888

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

test/sequential/test-http2-timeout-large-write-file.js

-4
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,6 @@ server.on('stream', common.mustCall((stream) => {
4343
'Content-Length': content.length.toString(),
4444
'Vary': 'Accept-Encoding'
4545
});
46-
stream.setTimeout(serverTimeout);
47-
stream.on('timeout', () => {
48-
assert.strictEqual(didReceiveData, false, 'Should not timeout');
49-
});
5046
stream.end();
5147
}));
5248
server.setTimeout(serverTimeout);

0 commit comments

Comments
 (0)