Skip to content

Commit 221ffc0

Browse files
authored
test: deflake test-debugger-probe-timeout
On slow machines in the CI, the 200ms timeout may fire before the probed process finishes evaluation. Increase the timeout to common.platformTimeout(1000) to accomondate. Signed-off-by: Joyee Cheung <joyeec9h3@gmail.com> PR-URL: nodejs#63547 Refs: https://github.com/nodejs/reliability/blob/main/reports/2026-05-24.md Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
1 parent 13feb34 commit 221ffc0

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

test/parallel/test-debugger-probe-timeout.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,11 @@ const { spawnSyncAndExit } = require('../common/child_process');
99
const { assertProbeJson } = require('../common/debugger-probe');
1010
const cwd = fixtures.path('debugger');
1111

12+
const timeout = common.platformTimeout(1000);
1213
spawnSyncAndExit(process.execPath, [
1314
'inspect',
1415
'--json',
15-
'--timeout=200',
16+
`--timeout=${timeout}`,
1617
'--probe', 'probe-timeout.js:99',
1718
'--expr', '1',
1819
'probe-timeout.js',
@@ -31,7 +32,7 @@ spawnSyncAndExit(process.execPath, [
3132
pending: [0],
3233
error: {
3334
code: 'probe_timeout',
34-
message: 'Timed out after 200ms waiting for probes: probe-timeout.js:99',
35+
message: `Timed out after ${timeout}ms waiting for probes: probe-timeout.js:99`,
3536
},
3637
}],
3738
});

0 commit comments

Comments
 (0)