summaryrefslogtreecommitdiff
path: root/test/addons
diff options
context:
space:
mode:
authorTrevor Norris <trev.norris@gmail.com>2017-06-19 23:13:00 -0600
committerTrevor Norris <trev.norris@gmail.com>2017-09-27 04:15:43 -0600
commitd28d20ccb7662e7ef83a925e60bd2c37151e970c (patch)
treee910b4f6469e6e7cb5aa98da094b2fd8c80d2269 /test/addons
parent44dc449effdd607065f2bd112f16f4b795ea067c (diff)
downloadandroid-node-v8-d28d20ccb7662e7ef83a925e60bd2c37151e970c.tar.gz
android-node-v8-d28d20ccb7662e7ef83a925e60bd2c37151e970c.tar.bz2
android-node-v8-d28d20ccb7662e7ef83a925e60bd2c37151e970c.zip
test: skip test when checking async_hooks
The test addons/async-hooks-promise depends on there being only one hook available. So skip it if NODE_TEST_WITH_ASYNC_HOOKS is set. PR-URL: https://github.com/nodejs/node/pull/14208 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Refael Ackermann <refack@gmail.com>
Diffstat (limited to 'test/addons')
-rw-r--r--test/addons/async-hooks-promise/test.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/addons/async-hooks-promise/test.js b/test/addons/async-hooks-promise/test.js
index b0af8806bd..e7923c9c57 100644
--- a/test/addons/async-hooks-promise/test.js
+++ b/test/addons/async-hooks-promise/test.js
@@ -5,6 +5,11 @@ const assert = require('assert');
const async_hooks = require('async_hooks');
const binding = require(`./build/${common.buildType}/binding`);
+if (process.env.NODE_TEST_WITH_ASYNC_HOOKS) {
+ common.skip('cannot test with env var NODE_TEST_WITH_ASYNC_HOOKS');
+ return;
+}
+
// Baseline to make sure the internal field isn't being set.
assert.strictEqual(
binding.getPromiseField(Promise.resolve(1)),