From 54cdb0558a13838cc20bcda309515b9fc946b5d3 Mon Sep 17 00:00:00 2001 From: JSONbored <49853598+JSONbored@users.noreply.github.com> Date: Mon, 20 Jul 2026 17:24:38 -0700 Subject: [PATCH] test(unit): give the multi-scenario defaultBaseRef test a longer budget This test does three full real-git round trips in sequence (mkdtemp, fixture init, several git subprocess calls, and cleanup, repeated for the origin/HEAD, origin/main, and origin/master precedence cases), which reliably finishes in seconds in isolation but can cross the default 15s timeout under the CPU/I-O contention of the full unsharded suite. Bump it to 30s, the same override pattern already used elsewhere in this suite for other real-subprocess-heavy tests. --- test/unit/local-branch.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/unit/local-branch.test.ts b/test/unit/local-branch.test.ts index 9865cc050..8d5fccfe2 100644 --- a/test/unit/local-branch.test.ts +++ b/test/unit/local-branch.test.ts @@ -2419,7 +2419,7 @@ describe("local MCP git metadata collection (#7329 coverage)", () => { git(tempDir, "update-ref", "refs/remotes/origin/master", masterSha); const withOriginMaster = collectLocalBranchMetadata({ cwd: tempDir, login: "oktofeesh1" }); expect(withOriginMaster.baseRef).toBe("origin/master"); - }); + }, 30_000); it("throws when repoFullName cannot be inferred from the remote and is not passed explicitly", async () => { const { collectLocalBranchMetadata } = await import("../../packages/loopover-mcp/lib/local-branch.js");