Skip to content

Commit

Permalink
[Squash] nit
Browse files Browse the repository at this point in the history
Co-authored-by: Michaël Zasso <targos@protonmail.com>
  • Loading branch information
jasnell and targos committed Nov 21, 2021
1 parent f04a7fb commit aab9e13
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/parallel/test-abortcontroller.js
Expand Up @@ -158,8 +158,9 @@ const { ok, strictEqual, throws } = require('assert');
// Test AbortSignal timeout
const signal = AbortSignal.timeout(10);
ok(!signal.aborted);
setTimeout(() => {
setTimeout(common.mustCall(() => {
ok(signal.aborted);
strictEqual(signal.reason.name, 'TimeoutError');
strictEqual(signal.reason.code, 23);
}, 20);
}), 20);
}

0 comments on commit aab9e13

Please sign in to comment.