Skip to content

Commit

Permalink
test:refactor createHook test
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
JenyMzo authored and MylesBorins committed Dec 17, 2019
1 parent 719e33f commit 9f49b97
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/parallel/test-async-hooks-promise-triggerid.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ async_hooks.createHook({
if (type === 'PROMISE') {
// Check that the last known Promise is triggering the creation of
// this one.
assert.strictEqual(promiseAsyncIds[promiseAsyncIds.length - 1] || 1,
triggerId);
assert.strictEqual(triggerId,
promiseAsyncIds[promiseAsyncIds.length - 1] || 1);
promiseAsyncIds.push(id);
}
}, 3),
Expand Down

0 comments on commit 9f49b97

Please sign in to comment.