Skip to content

Commit

Permalink
test:refactor createHook test
Browse files Browse the repository at this point in the history
  • Loading branch information
JenyMzo committed Nov 21, 2019
1 parent 0ebf01d commit efc2b45
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 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,7 @@ 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 efc2b45

Please sign in to comment.