Skip to content

Commit

Permalink
test: remove random timer in test-tls-fast-writing
Browse files Browse the repository at this point in the history
test-tls-fast-writing can fail on a heavily-loaded system due to an
arbitrary 1-second timeout. Remove the arbitrary timeout.

PR-URL: #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>
  • Loading branch information
Trott authored and MylesBorins committed Oct 25, 2017
1 parent 10a7035 commit c4b06b2
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions test/parallel/test-tls-fast-writing.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit c4b06b2

Please sign in to comment.