Skip to content
Browse files

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: #14208
Reviewed-By: James M Snell <>
Reviewed-By: Refael Ackermann <>
  • Loading branch information
trevnorris authored and MylesBorins committed Jun 20, 2017
1 parent 98fc665 commit bbdd93f34f2328c05337945b1ad5956c5639154b
Showing with 5 additions and 0 deletions.
  1. +5 −0 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');

// Baseline to make sure the internal field isn't being set.

0 comments on commit bbdd93f

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