Skip to content

Commit 649fdf9

Browse files
committed
test(ci): budget OAuth CAS and translator typecheck under windows load
Two bun x tsc --noEmit spawns and gated refresh CAS races exceeded Bun's 5s default on the windows leg after the suite hang was cleared.
1 parent bf8b015 commit 649fdf9

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

tests/oauth-refresh-generic-lock.test.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { afterEach, beforeEach, describe, expect, test } from "bun:test";
1+
import { afterEach, beforeEach, describe, expect, setDefaultTimeout, test } from "bun:test";
22
import { mkdirSync, rmSync } from "node:fs";
33
import { tmpdir } from "node:os";
44
import { join } from "node:path";
@@ -10,6 +10,10 @@ import {
1010
import type { OAuthCredentials } from "../src/oauth/types";
1111
import { getAccountCredential, getAccountSet, saveCredential } from "../src/oauth/store";
1212

13+
// Gate/CAS refresh races can exceed the 5s default under windows-latest contention
14+
// (same flake class as kiro-oauth / oauth queue budgets).
15+
setDefaultTimeout(30_000);
16+
1317
const origHome = process.env.HOME;
1418
const origOcxHome = process.env.OPENCODEX_HOME;
1519
const origKimiRefresh = OAUTH_PROVIDERS.kimi!.refresh;

tests/translator-budget.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,4 +253,5 @@ test("production adapter contract rejects omitted translator budgets at typechec
253253
expect(invalid.stdout.toString() + invalid.stderr.toString()).toContain("TS2554");
254254
const valid = Bun.spawnSync(["bun", ...base, "tests/fixtures/translator-budget-required.valid.ts"]);
255255
expect(valid.exitCode).toBe(0);
256-
});
256+
// Two bun x tsc --noEmit spawns exceed Bun's 5s default under windows-latest contention.
257+
}, 60_000);

0 commit comments

Comments
 (0)