Skip to content

Commit aab9e13

Browse files
jasnelltargos
andauthored
[Squash] nit
Co-authored-by: Michaël Zasso <[email protected]>
1 parent f04a7fb commit aab9e13

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/parallel/test-abortcontroller.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,8 +158,9 @@ const { ok, strictEqual, throws } = require('assert');
158158
// Test AbortSignal timeout
159159
const signal = AbortSignal.timeout(10);
160160
ok(!signal.aborted);
161-
setTimeout(() => {
161+
setTimeout(common.mustCall(() => {
162162
ok(signal.aborted);
163+
strictEqual(signal.reason.name, 'TimeoutError');
163164
strictEqual(signal.reason.code, 23);
164-
}, 20);
165+
}), 20);
165166
}

0 commit comments

Comments
 (0)