Skip to content

Commit ba0115f

Browse files
JenyMzoaddaleax
authored andcommitted
test:refactor createHook test
PR-URL: #30568 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: David Carlier <devnexen@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
1 parent 63eb4fe commit ba0115f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/parallel/test-async-hooks-promise-triggerid.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ async_hooks.createHook({
1313
if (type === 'PROMISE') {
1414
// Check that the last known Promise is triggering the creation of
1515
// this one.
16-
assert.strictEqual(promiseAsyncIds[promiseAsyncIds.length - 1] || 1,
17-
triggerId);
16+
assert.strictEqual(triggerId,
17+
promiseAsyncIds[promiseAsyncIds.length - 1] || 1);
1818
promiseAsyncIds.push(id);
1919
}
2020
}, 3),

0 commit comments

Comments
 (0)