From 1de4b3892f55d7883f9c4b0192cf03092a53484f Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Sun, 14 Feb 2021 15:52:54 -0800 Subject: [PATCH] test: fix flaky test-worker-prof Fixes: https://github.com/nodejs/node/issues/26401 --- test/sequential/sequential.status | 4 ---- test/sequential/test-worker-prof.js | 3 ++- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/test/sequential/sequential.status b/test/sequential/sequential.status index e7f8640d621c08..07fbc03ae3faec 100644 --- a/test/sequential/sequential.status +++ b/test/sequential/sequential.status @@ -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 diff --git a/test/sequential/test-worker-prof.js b/test/sequential/test-worker-prof.js index f89ff962ff785d..54c027bc407db4 100644 --- a/test/sequential/test-worker-prof.js +++ b/test/sequential/test-worker-prof.js @@ -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)}`);