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 evanlucas committed Nov 13, 2017
1 parent be266bd commit 21e9888
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 21e9888

Please sign in to comment.