Skip to content

Commit a9c60b5

Browse files
committed
test: fix lowered async delay which was too long for the GitHub CI
1 parent e0744fa commit a9c60b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/cancelable/cancelifyAbortableTest.mjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ describe("cancelable/cancelifyAbortable", function () {
2828
Promise.race([
2929
new Promise((res, rej) => {
3030
const cancel = cancelableExec(`${listCommand} package.json`, {})(res, rej);
31-
setTimeout(cancel, 5);
31+
setImmediate(cancel);
3232
})
3333
.finally(() => { assert.fail("cancelable should not continue"); }),
3434

0 commit comments

Comments
 (0)