From e1579ec31b15883d739aed5bcd910e60f70561d8 Mon Sep 17 00:00:00 2001 From: REA Maintenance <76467478+morluto@users.noreply.github.com> Date: Wed, 14 Oct 2026 02:10:30 +0800 Subject: [PATCH] test(electron): allow cold macOS ownership setup --- tests/boundary/process/electronLaunchRejections.test.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tests/boundary/process/electronLaunchRejections.test.ts b/tests/boundary/process/electronLaunchRejections.test.ts index ce76a83b58..c2f32e5c85 100644 --- a/tests/boundary/process/electronLaunchRejections.test.ts +++ b/tests/boundary/process/electronLaunchRejections.test.ts @@ -1,7 +1,7 @@ import { chmod, mkdir, writeFile } from "node:fs/promises"; import { join } from "node:path"; -import { expect } from "vitest"; +import { expect, vi } from "vitest"; import { createTestTempDirectory } from "../../fixtures/temporaryDirectory.js"; import { @@ -122,6 +122,10 @@ console.log(JSON.stringify({ })); `; +// A cold macOS Swift toolchain may spend up to 120 seconds building the +// ownership reader before any child launch reaches its assertion. +vi.setConfig({ testTimeout: 180_000 }); + type Outcome = { readonly before: number; readonly during: number; @@ -148,7 +152,7 @@ const run = async ( script, JSON.stringify([scenario, executable, root]), ], - { timeoutMs: 60_000 }, + { timeoutMs: 150_000 }, ); const outcome = (result: { readonly stdout: string }): Outcome =>