From d64fe485c59a775116f389ab9d36c2c15c9cf5aa Mon Sep 17 00:00:00 2001 From: Anatoli Papirovski Date: Sat, 4 Nov 2017 13:45:58 -0400 Subject: [PATCH] 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 Reviewed-By: Colin Ihrig --- test/sequential/test-http2-timeout-large-write-file.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/test/sequential/test-http2-timeout-large-write-file.js b/test/sequential/test-http2-timeout-large-write-file.js index f52523780dc948..922e5f99668da2 100644 --- a/test/sequential/test-http2-timeout-large-write-file.js +++ b/test/sequential/test-http2-timeout-large-write-file.js @@ -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);