From 2d2fa295b25f71eb36f81957cbfc78182ea09aba Mon Sep 17 00:00:00 2001 From: dajiaohuang Date: Fri, 11 Sep 2026 01:37:35 +0800 Subject: [PATCH] test(install): allow slower Windows CI process startup --- tests/scripts/install-apply.test.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/scripts/install-apply.test.js b/tests/scripts/install-apply.test.js index 270339cb9..dd179b369 100644 --- a/tests/scripts/install-apply.test.js +++ b/tests/scripts/install-apply.test.js @@ -11,7 +11,11 @@ const yaml = require('js-yaml'); const { applyInstallPlan } = require('../../scripts/lib/install/apply'); const SCRIPT = path.join(__dirname, '..', '..', 'scripts', 'install-apply.js'); -const DEFAULT_INSTALL_APPLY_TIMEOUT_MS = process.platform === 'win32' ? 30000 : 10000; +// Windows hosted runners can spend over 30 seconds starting the nested Node +// process while the full install suite is under load. Keep the timeout bounded +// but allow the process enough time to finish instead of reporting a false CI +// failure. +const DEFAULT_INSTALL_APPLY_TIMEOUT_MS = process.platform === 'win32' ? 60000 : 10000; function createTempDir(prefix) { return fs.mkdtempSync(path.join(os.tmpdir(), prefix));