mirror of
https://github.com/nodejs/node.git
synced 2026-11-30 11:55:44 -05:00
test: increase timeout in vm-timeout-escape-queuemicrotask
It looks like under high load the loop isn't even started and therefore successfully finishes without 'escaping'. After increasing the timeout during parallel run of the test failure rate decreased from 15/1000 to 0/1000. PR-URL: https://github.com/nodejs/node/pull/31966 Refs: https://github.com/nodejs/node/issues/25529 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
This commit is contained in:
1 parent
20a51b9dff
commit
468bfd3487
1 file changed
+2
-2
@@ -12,8 +12,8 @@ const NS_PER_MS = 1000000n;
|
||||
|
||||
const hrtime = process.hrtime.bigint;
|
||||
|
||||
const loopDuration = common.platformTimeout(100n);
|
||||
const timeout = common.platformTimeout(10);
|
||||
const loopDuration = common.platformTimeout(1000n);
|
||||
const timeout = common.platformTimeout(100);
|
||||
|
||||
function loop() {
|
||||
const start = hrtime();
|
||||
|
||||
Reference in new issue
Block a user