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 committed Nov 7, 2017
1 parent 6af68d0 commit daeb7a6
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
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 daeb7a6

Please sign in to comment.