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>
v6.x-staging
Rich Trott 7 years ago
committed by Myles Borins
parent
commit
6ec8eb1616
No known key found for this signature in database GPG Key ID: 933B01F40B5CA946
  1. 5
      test/parallel/test-tls-fast-writing.js

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

@ -16,11 +16,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