Skip to content

Commit c4c5912

Browse files
JenyMzotargos
authored andcommitted
test:refactor createHook test
PR-URL: #30568 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: David Carlier <[email protected]> Reviewed-By: Gireesh Punathil <[email protected]>
1 parent f0d4392 commit c4c5912

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)