Skip to content

Commit 3fd9375

Browse files
committed
test: fix flaky test-worker-prof
Fixes: nodejs#26401
1 parent 41516b9 commit 3fd9375

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

test/sequential/sequential.status

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ prefix sequential
99
test-cpu-prof-dir-worker: PASS, FLAKY
1010

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

1513
[$system==linux]
1614

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

3331
[$arch==arm]
34-
# https://github.com/nodejs/node/issues/26401#issuecomment-613095719
35-
test-worker-prof: PASS, FLAKY

test/sequential/test-worker-prof.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,10 @@ if (process.argv[2] === 'child') {
4949
w.postMessage(process.execPath);
5050
} else {
5151
tmpdir.refresh();
52+
const timeout = common.platformTimeout(60_000);
5253
const spawnResult = spawnSync(
5354
process.execPath, ['--prof', __filename, 'child'],
54-
{ cwd: tmpdir.path, encoding: 'utf8', timeout: 30_000 });
55+
{ cwd: tmpdir.path, encoding: 'utf8', timeout });
5556
assert.strictEqual(spawnResult.stderr.toString(), '',
5657
`child exited with an error: \
5758
${util.inspect(spawnResult)}`);

0 commit comments

Comments
 (0)