mirror of
https://github.com/nodejs/node.git
synced 2026-10-14 10:26:26 -04:00
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>
This commit is contained in:
1 parent
ea6df03258
commit
9b23777442
1 file changed
+1
-1
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user