From f3401f3bbaf370be21d21f460e3172c0c38746d1 Mon Sep 17 00:00:00 2001 From: minhn4 Date: Fri, 10 Jul 2026 19:59:11 +0700 Subject: [PATCH] test: raise timeouts on Windows-flaky git and sync-fence tests These git-subprocess tests barely exceed their default limits on the slow Windows CI runners: the two Git clone/fetch tests hit ~5001ms and ~5013ms against the 5000ms default, and the waitForSync timeout test took ~7456ms against its 7000ms budget (its internal fence times out in 25ms; the overhead is the git instance setup). Give them generous headroom so real behavior, not runner speed, decides the result. Co-Authored-By: Claude Opus 4.8 (1M context) --- packages/core/test/git.test.ts | 2 ++ packages/opencode/test/control-plane/workspace.test.ts | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/core/test/git.test.ts b/packages/core/test/git.test.ts index f77e32fd8b..6a95eaefaf 100644 --- a/packages/core/test/git.test.ts +++ b/packages/core/test/git.test.ts @@ -30,6 +30,7 @@ describe("Git", () => { expect(yield* read(path.join(target, "README.md"))).toBe("one\n") }), ), + 30_000, ) it.live("fetches, checks out, and resets remote changes", () => @@ -52,6 +53,7 @@ describe("Git", () => { expect(yield* read(path.join(target, "README.md"))).toBe("feature\n") }), ), + 30_000, ) }) diff --git a/packages/opencode/test/control-plane/workspace.test.ts b/packages/opencode/test/control-plane/workspace.test.ts index a0d3aadbef..6cd1a06b98 100644 --- a/packages/opencode/test/control-plane/workspace.test.ts +++ b/packages/opencode/test/control-plane/workspace.test.ts @@ -1696,6 +1696,6 @@ describe("workspace waitForSync", () => { ) }), { git: true }, - 7000, + 30_000, ) })