mirror of
https://github.com/nodejs/node.git
synced 2026-10-14 10:26:26 -04:00
test: fix test-debugger-profile for coverage generation
The child process should not inherit NODE_V8_COVERAGE because that clobbers the inspector output the test is checking. PR-URL: https://github.com/nodejs/node/pull/51816 Reviewed-By: Moshe Atlow <moshe@atlow.co.il> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Ethan Arrowood <ethan@arrowood.dev>
This commit is contained in:
1 parent
765baa7a0b
commit
1353a7b1f7
1 file changed
+8
-1
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user