diff --git a/test/parallel/test-bootstrap-modules.js b/test/parallel/test-bootstrap-modules.js index 446a1538ccc5b2..124e106067640f 100644 --- a/test/parallel/test-bootstrap-modules.js +++ b/test/parallel/test-bootstrap-modules.js @@ -161,6 +161,11 @@ if (process.features.inspector) { expected.beforePreExec.add('Internal Binding inspector'); expected.beforePreExec.add('NativeModule internal/util/inspector'); expected.atRunTime.add('NativeModule internal/inspector_async_hook'); + + // This is loaded if the test is run with NODE_V8_COVERAGE. + if (process.env.NODE_V8_COVERAGE) { + expected.atRunTime.add('Internal Binding profiler'); + } } const difference = (setA, setB) => { diff --git a/test/parallel/test-debugger-profile.js b/test/parallel/test-debugger-profile.js index 6cd0fc9d88d399..a59512cc1c6963 100644 --- a/test/parallel/test-debugger-profile.js +++ b/test/parallel/test-debugger-profile.js @@ -14,7 +14,14 @@ function delay(ms) { // Profiles. { - const cli = startCLI(['--port=0', fixtures.path('debugger/empty.js')]); + const cli = startCLI(['--port=0', fixtures.path('debugger/empty.js')], [], { + env: { + ...process.env, + // When this test is run with NODE_V8_COVERAGE, it clobbers the inspector + // output, so override to disable coverage for the child process. + NODE_V8_COVERAGE: undefined, + } + }); function onFatal(error) { cli.quit();