diff options
Diffstat (limited to 'test/parallel/test-http-client-immediate-error.js')
-rw-r--r-- | test/parallel/test-http-client-immediate-error.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/parallel/test-http-client-immediate-error.js b/test/parallel/test-http-client-immediate-error.js index 6b9cacb256..abbf5c41fc 100644 --- a/test/parallel/test-http-client-immediate-error.js +++ b/test/parallel/test-http-client-immediate-error.js @@ -1,4 +1,5 @@ 'use strict'; +// Flags: --expose-internals // Make sure http.request() can catch immediate errors in // net.createConnection(). @@ -9,7 +10,7 @@ const net = require('net'); const http = require('http'); const uv = process.binding('uv'); const { async_id_symbol } = process.binding('async_wrap'); -const { newUid } = require('async_hooks'); +const { newUid } = require('internal/async_hooks'); const agent = new http.Agent(); agent.createConnection = common.mustCall((cfg) => { |