Skip to content

Commit 4e0735b

Browse files
committed
test: fix flaky test-worker-prof
Fixes: nodejs#26401
1 parent bcb1964 commit 4e0735b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/sequential/test-worker-prof.js

+2-1
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(30_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)