Browse Source

test: remove random timer in test-tls-fast-writing

test-tls-fast-writing can fail on a heavily-loaded system due to an
arbitrary 1-second timeout. Remove the arbitrary timeout.

PR-URL: https://github.com/nodejs/node/pull/15138
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Refael Ackermann <refack@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
canary-base
Rich Trott 8 years ago
committed by Ruben Bridgewater
parent
commit
16a81cd2c0
No known key found for this signature in database GPG Key ID: F07496B3EB3C1762
  1. 5
      test/parallel/test-tls-fast-writing.js

5
test/parallel/test-tls-fast-writing.js

@ -37,11 +37,6 @@ const server = tls.createServer(options, onconnection);
let gotChunk = false;
let gotDrain = false;
setTimeout(function() {
console.log('not ok - timed out');
process.exit(1);
}, common.platformTimeout(1000));
function onconnection(conn) {
conn.on('data', function(c) {
if (!gotChunk) {

Loading…
Cancel
Save