diff options
Diffstat (limited to 'test/parallel/test-trace-events-bootstrap.js')
-rw-r--r-- | test/parallel/test-trace-events-bootstrap.js | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/test/parallel/test-trace-events-bootstrap.js b/test/parallel/test-trace-events-bootstrap.js index 8d5e00f00f..087fbd2f18 100644 --- a/test/parallel/test-trace-events-bootstrap.js +++ b/test/parallel/test-trace-events-bootstrap.js @@ -2,13 +2,10 @@ const common = require('../common'); const assert = require('assert'); const cp = require('child_process'); -const path = require('path'); const fs = require('fs'); +const path = require('path'); const tmpdir = require('../common/tmpdir'); -if (!common.isMainThread) - common.skip('process.chdir is not available in Workers'); - const names = [ 'environment', 'nodeStart', @@ -30,10 +27,10 @@ if (process.argv[2] === 'child') { 1 + 1; } else { tmpdir.refresh(); - process.chdir(tmpdir.path); const proc = cp.fork(__filename, [ 'child' ], { + cwd: tmpdir.path, execArgv: [ '--trace-event-categories', 'node.bootstrap' |