From 6a9654a7a9a4db6f5c23c79885fe250176d8a51f Mon Sep 17 00:00:00 2001 From: Ruben Bridgewater Date: Mon, 10 Feb 2020 13:07:30 +0100 Subject: [PATCH] test: increase test timeout to prevent flakiness This increases the waiting time for each event from 500 to 750 ms. The former timeout could be hit on very slow machines with high load. PR-URL: https://github.com/nodejs/node/pull/31716 Reviewed-By: James M Snell Reviewed-By: Anna Henningsen --- test/parallel/test-repl.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/parallel/test-repl.js b/test/parallel/test-repl.js index b0dad397ccc06b..67ec86cc2c5472 100644 --- a/test/parallel/test-repl.js +++ b/test/parallel/test-repl.js @@ -861,7 +861,7 @@ function event(ee, expected) { const data = inspect(expected, { compact: false }); const msg = `The REPL did not reply as expected for:\n\n${data}`; reject(new Error(msg)); - }, common.platformTimeout(500)); + }, common.platformTimeout(1000)); ee.once('data', common.mustCall((...args) => { clearTimeout(timeout); resolve(...args);