Skip to content

Commit c4b06b2

Browse files
TrottMylesBorins
authored andcommitted
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: #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>
1 parent 10a7035 commit c4b06b2

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

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

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,6 @@ const server = tls.createServer(options, onconnection);
1616
let gotChunk = false;
1717
let gotDrain = false;
1818

19-
setTimeout(function() {
20-
console.log('not ok - timed out');
21-
process.exit(1);
22-
}, common.platformTimeout(1000));
23-
2419
function onconnection(conn) {
2520
conn.on('data', function(c) {
2621
if (!gotChunk) {

0 commit comments

Comments
 (0)