mirror of https://github.com/nodejs/node.git
test: fix flaky test-repl
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 <duhamelantoine1995@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Gerhard Stöbich <deb2001-github@yahoo.de> Reviewed-By: James M Snell <jasnell@gmail.com>pull/36456/head
parent
ea6df03258
commit
9b23777442
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue