We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e0744fa commit a9c60b5Copy full SHA for a9c60b5
test/cancelable/cancelifyAbortableTest.mjs
@@ -28,7 +28,7 @@ describe("cancelable/cancelifyAbortable", function () {
28
Promise.race([
29
new Promise((res, rej) => {
30
const cancel = cancelableExec(`${listCommand} package.json`, {})(res, rej);
31
- setTimeout(cancel, 5);
+ setImmediate(cancel);
32
})
33
.finally(() => { assert.fail("cancelable should not continue"); }),
34
0 commit comments