From bc6562f44a3d141a3a4b4ad8d5a034eccafe6995 Mon Sep 17 00:00:00 2001 From: Matteo Collina Date: Fri, 20 Feb 2026 15:08:29 +0100 Subject: [PATCH] test: increase debugger waitFor timeout on macOS and Windows The test-debugger-restart-message test is flaky on macOS CI because the Debugger.getScriptSource CDP round-trip in the initial break handler can be slow under CI load, causing the 15s timeout to be exceeded. Increase the macOS/Windows timeout from 15s to 30s to provide adequate headroom. --- test/common/debugger.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test/common/debugger.js b/test/common/debugger.js index dbaa62e71d3f1c..109a29ffa6c277 100644 --- a/test/common/debugger.js +++ b/test/common/debugger.js @@ -8,10 +8,12 @@ const BREAK_MESSAGE = new RegExp('(?:' + [ ].join('|') + ') in', 'i'); let TIMEOUT = common.platformTimeout(10000); -// Some macOS and Windows machines require more time to receive the outputs from the client. +// Some macOS and Windows machines require more time to receive the outputs from the +// client, especially under CI load where the async Debugger.getScriptSource CDP +// round-trip in the initial break handler can be slow. // https://github.com/nodejs/build/issues/3014 if (common.isWindows || common.isMacOS) { - TIMEOUT = common.platformTimeout(15000); + TIMEOUT = common.platformTimeout(30000); } function isPreBreak(output) {