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

Verified

This commit was signed with the committer’s verified signature. The key has expired.
andrewegel Andrew Egelhofer
1 parent bcb1964 commit 1de4b38
Showing 2 changed files with 2 additions and 5 deletions.
4 changes: 0 additions & 4 deletions test/sequential/sequential.status
Original file line number Diff line number Diff line change
@@ -9,8 +9,6 @@ prefix sequential
test-cpu-prof-dir-worker: PASS, FLAKY

[$system==win32]
# https://github.com/nodejs/node/issues/26401
test-worker-prof: PASS, FLAKY

[$system==linux]

@@ -31,5 +29,3 @@ test-buffer-creation-regression: SKIP
test-perf-hooks: SKIP

[$arch==arm]
# https://github.com/nodejs/node/issues/26401#issuecomment-613095719
test-worker-prof: PASS, FLAKY
3 changes: 2 additions & 1 deletion test/sequential/test-worker-prof.js
Original file line number Diff line number Diff line change
@@ -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)}`);

0 comments on commit 1de4b38

Please sign in to comment.