diff --git a/test/addons/async-hooks-promise/test.js b/test/addons/async-hooks-promise/test.js index b0af8806bd665f..e7923c9c57a6e9 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)),