summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeny <yenymzo@gmail.com>2019-11-20 22:42:47 +0100
committerGireesh Punathil <gpunathi@in.ibm.com>2019-11-30 09:45:25 +0530
commit246557eb117171411afa895611a1c7e4b6612a27 (patch)
tree13e1203c993017a7d06f92457f94d35b6af8e347
parentc14c476614e3134867ddb997bdfe5a41ba668175 (diff)
downloadandroid-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.js4
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),