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 <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: David Carlier <[email protected]>
Reviewed-By: Gireesh Punathil <[email protected]>
  • Loading branch information
JenyMzo authored and addaleax committed Nov 30, 2019
1 parent 63eb4fe commit ba0115f
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 ba0115f

Please sign in to comment.