Skip to content
Permalink
Browse files

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>
  • Loading branch information
JenyMzo authored and MylesBorins committed Nov 20, 2019
1 parent 719e33f commit 9f49b978e45bc163481f60d1ce8bd381412c6161
Showing with 2 additions and 2 deletions.
  1. +2 −2 test/parallel/test-async-hooks-promise-triggerid.js
@@ -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),

0 comments on commit 9f49b97

Please sign in to comment.
You can’t perform that action at this time.