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>
This commit is contained in:
parent
aa3b96ab74
commit
16a81cd2c0
@ -37,11 +37,6 @@ const server = tls.createServer(options, onconnection);
|
|||||||
let gotChunk = false;
|
let gotChunk = false;
|
||||||
let gotDrain = false;
|
let gotDrain = false;
|
||||||
|
|
||||||
setTimeout(function() {
|
|
||||||
console.log('not ok - timed out');
|
|
||||||
process.exit(1);
|
|
||||||
}, common.platformTimeout(1000));
|
|
||||||
|
|
||||||
function onconnection(conn) {
|
function onconnection(conn) {
|
||||||
conn.on('data', function(c) {
|
conn.on('data', function(c) {
|
||||||
if (!gotChunk) {
|
if (!gotChunk) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user