summaryrefslogtreecommitdiff
path: root/test/parallel/test-async-wrap-trigger-id.js
diff options
context:
space:
mode:
authorAndreas Madsen <amwebdk@gmail.com>2017-06-14 12:39:53 +0200
committerAndreas Madsen <amwebdk@gmail.com>2017-06-14 12:39:53 +0200
commitde762b71f2e10d8eb6392ad6d4325b7ffc08b7fd (patch)
treee22a8325b4f994455f0959c311c4edf8a5095d43 /test/parallel/test-async-wrap-trigger-id.js
parent448c4c62d2b413226dfdef03d6f8d243de0984a3 (diff)
downloadandroid-node-v8-de762b71f2e10d8eb6392ad6d4325b7ffc08b7fd.tar.gz
android-node-v8-de762b71f2e10d8eb6392ad6d4325b7ffc08b7fd.tar.bz2
android-node-v8-de762b71f2e10d8eb6392ad6d4325b7ffc08b7fd.zip
async_hooks: rename currentId and triggerId
currentId is renamed to executionAsyncId triggerId is renamed to triggerAsyncId AsyncResource.triggerId is renamed to AsyncResource.triggerAsyncId AsyncHooksGetCurrentId is renamed to AsyncHooksGetExecutionAsyncId AsyncHooksGetTriggerId is renamed to AsyncHooksGetTriggerAsyncId PR-URL: https://github.com/nodejs/node/pull/13490 Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Trevor Norris <trev.norris@gmail.com>
Diffstat (limited to 'test/parallel/test-async-wrap-trigger-id.js')
-rw-r--r--test/parallel/test-async-wrap-trigger-id.js22
1 files changed, 11 insertions, 11 deletions
diff --git a/test/parallel/test-async-wrap-trigger-id.js b/test/parallel/test-async-wrap-trigger-id.js
index 53e84a351e..271fe3b107 100644
--- a/test/parallel/test-async-wrap-trigger-id.js
+++ b/test/parallel/test-async-wrap-trigger-id.js
@@ -3,26 +3,26 @@ require('../common');
const assert = require('assert');
const async_hooks = require('async_hooks');
-const triggerId = async_hooks.triggerId;
+const triggerAsyncId = async_hooks.triggerAsyncId;
-const triggerId0 = triggerId();
-let triggerId1;
+const triggerAsyncId0 = triggerAsyncId();
+let triggerAsyncId1;
process.nextTick(() => {
process.nextTick(() => {
- triggerId1 = triggerId();
+ triggerAsyncId1 = triggerAsyncId();
assert.notStrictEqual(
- triggerId0,
- triggerId1,
+ triggerAsyncId0,
+ triggerAsyncId1,
'Async resources having different causal ancestry ' +
- 'should have different triggerIds');
+ 'should have different triggerAsyncIds');
});
process.nextTick(() => {
- const triggerId2 = triggerId();
+ const triggerAsyncId2 = triggerAsyncId();
assert.strictEqual(
- triggerId1,
- triggerId2,
+ triggerAsyncId1,
+ triggerAsyncId2,
'Async resources having the same causal ancestry ' +
- 'should have the same triggerId');
+ 'should have the same triggerAsyncId');
});
});