mirror of
https://github.com/nodejs/node.git
synced 2026-10-14 10:26:26 -04:00
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 <jasnell@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net>
This commit is contained in:
1 file changed
+1
-1
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user