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: https://github.com/nodejs/node/pull/16754 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
This commit is contained in:
parent
6af68d0e63
commit
daeb7a64a5
@ -43,10 +43,6 @@ server.on('stream', common.mustCall((stream) => {
|
||||
'Content-Length': content.length.toString(),
|
||||
'Vary': 'Accept-Encoding'
|
||||
});
|
||||
stream.setTimeout(serverTimeout);
|
||||
stream.on('timeout', () => {
|
||||
assert.strictEqual(didReceiveData, false, 'Should not timeout');
|
||||
});
|
||||
stream.end();
|
||||
}));
|
||||
server.setTimeout(serverTimeout);
|
||||
|
Loading…
x
Reference in New Issue
Block a user