Skip to content

Commit f7b0721

Browse files
committed
test: increase timeout in the debugger tests on Windows
On certain Windows machines it may take longer for the testing processes to receive outputs from the debugger process. Increasing the timeout to 15 seconds to avoid failing the tests in those cases.
1 parent e123a52 commit f7b0721

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

test/common/debugger.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,13 @@ const BREAK_MESSAGE = new RegExp('(?:' + [
77
'exception', 'other', 'promiseRejection',
88
].join('|') + ') in', 'i');
99

10-
const TIMEOUT = common.platformTimeout(5000);
10+
let TIMEOUT = common.platformTimeout(5000);
11+
if (common.isWindows) {
12+
// Some of the windows machines in the CI need more time to receive
13+
// the outputs from the client.
14+
// https://github.com/nodejs/build/issues/3014
15+
TIMEOUT = common.platformTimeout(15000);
16+
}
1117

1218
function isPreBreak(output) {
1319
return /Break on start/.test(output) && /1 \(function \(exports/.test(output);

0 commit comments

Comments
 (0)