From 9b23777442f9af01b25b8752e3d1767036b62f14 Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Sun, 6 Dec 2020 08:14:36 -0800 Subject: [PATCH] test: fix flaky test-repl MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The timeout is insufficient in CI (failures on Raspberry Pi) and I can reproduce locally (on macOS) with `tools/test.py -j 96 --repeat 192 test-repl`. Increase timeout drastically as it only is useful in an error condition. PR-URL: https://github.com/nodejs/node/pull/36415 Reviewed-By: Antoine du Hamel Reviewed-By: Michaël Zasso Reviewed-By: Luigi Pinca Reviewed-By: Gerhard Stöbich Reviewed-By: James M Snell --- 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 663b13ca0fe985..e900f3ce15579a 100644 --- a/test/parallel/test-repl.js +++ b/test/parallel/test-repl.js @@ -926,7 +926,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(1000)); + }, common.platformTimeout(9999)); ee.once('data', common.mustCall((...args) => { clearTimeout(timeout); resolve(...args);