diff options
author | Jeny <yenymzo@gmail.com> | 2019-11-20 22:42:47 +0100 |
---|---|---|
committer | Gireesh Punathil <gpunathi@in.ibm.com> | 2019-11-30 09:45:25 +0530 |
commit | 246557eb117171411afa895611a1c7e4b6612a27 (patch) | |
tree | 13e1203c993017a7d06f92457f94d35b6af8e347 | |
parent | c14c476614e3134867ddb997bdfe5a41ba668175 (diff) | |
download | android-node-v8-246557eb117171411afa895611a1c7e4b6612a27.tar.gz android-node-v8-246557eb117171411afa895611a1c7e4b6612a27.tar.bz2 android-node-v8-246557eb117171411afa895611a1c7e4b6612a27.zip |
test:refactor createHook test
PR-URL: https://github.com/nodejs/node/pull/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>
-rw-r--r-- | test/parallel/test-async-hooks-promise-triggerid.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/parallel/test-async-hooks-promise-triggerid.js b/test/parallel/test-async-hooks-promise-triggerid.js index 467fddd359..b860d60999 100644 --- a/test/parallel/test-async-hooks-promise-triggerid.js +++ b/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), |