Skip to content

Commit

Permalink
test: unflake test-vm-timeout-escape-nexttick
Browse files Browse the repository at this point in the history
This wasn't failing on arm boxes, increase the `runInNewContext()`
timeout a bit to make sure the code it's allowed to fail.
  • Loading branch information
santigimeno committed May 22, 2023
1 parent 7170fc9 commit 8457895
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/known_issues/test-vm-timeout-escape-nexttick.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ const NS_PER_MS = 1000000n;
const hrtime = process.hrtime.bigint;
const nextTick = process.nextTick;

const waitDuration = common.platformTimeout(100n);
const waitDuration = common.platformTimeout(150n);

function loop() {
function loop(a) {
const start = hrtime();
while (1) {
const current = hrtime();
Expand All @@ -38,7 +38,7 @@ for (let i = 0; i < 4; i++) {
nextTick,
loop,
},
{ timeout: common.platformTimeout(10) },
{ timeout: common.platformTimeout(50) },
);
}, {
code: 'ERR_SCRIPT_EXECUTION_TIMEOUT',
Expand Down

0 comments on commit 8457895

Please sign in to comment.