Skip to content

Commit

Permalink
test: fix flaky test-worker-prof
Browse files Browse the repository at this point in the history
  • Loading branch information
Trott committed Feb 15, 2021
1 parent bcb1964 commit 311bfc1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/sequential/test-worker-prof.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,10 @@ if (process.argv[2] === 'child') {
w.postMessage(process.execPath);
} else {
tmpdir.refresh();
const timeout = common.platformTimeout(60_000);
const spawnResult = spawnSync(
process.execPath, ['--prof', __filename, 'child'],
{ cwd: tmpdir.path, encoding: 'utf8', timeout: 30_000 });
{ cwd: tmpdir.path, encoding: 'utf8', timeout });
assert.strictEqual(spawnResult.stderr.toString(), '',
`child exited with an error: \
${util.inspect(spawnResult)}`);
Expand Down

0 comments on commit 311bfc1

Please sign in to comment.