Skip to content

Commit

Permalink
test: check session timeout in http2
Browse files Browse the repository at this point in the history
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 <jasnell@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
  • Loading branch information
apapirovski authored and MylesBorins committed Nov 17, 2017
1 parent 4fcb03c commit d64fe48
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions test/sequential/test-http2-timeout-large-write-file.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit d64fe48

Please sign in to comment.