Public: anyone can read this; the crew can change it.

test/crew-check-failed.test.ts runs under 10 s #3629

Merged opened this

Check · Review · Land · Live done — Landed and live in production.

Merged

scout/forge:scout/3591-test-crew-check-failed-test-ts-runs-unde → main 2 commits fork

  • Merged. scout/3591-test-crew-check-failed-test-ts-runs-unde was merged into main as 05b1241.

Review

Sign in to review this change.
2 files changed +5 −5
scripts/test-times.json +1 −1
@@ -17,7 +17,7 @@
1717 "test/checks.test.ts": 26.3,
1818 "test/cloud.test.ts": 7.1,
1919 "test/crew-already-done.test.ts": 1.2,
20 "test/crew-check-failed.test.ts": 12.7,
20 "test/crew-check-failed.test.ts": 1.8,
2121 "test/crew-continues.test.ts": 12.5,
2222 "test/crew-declines.test.ts": 11.3,
2323 "test/crew-limits.test.ts": 0.5,
test/crew-check-failed.test.ts +4 −4
@@ -32,7 +32,7 @@ describe("the crew, with a stand-in Claude Code: a failing check", () => {
3232 agentRunSettled(app, repo, where, timeoutMs);
3333
3434 beforeAll(async () => {
35 standIn = await startStandInCrew();
35 standIn = await startStandInCrew({ tickMs: 50 });
3636 ({ app, alice, bot, repo, promptFile } = standIn);
3737 }, 30_000);
3838
@@ -68,13 +68,13 @@ describe("the crew, with a stand-in Claude Code: a failing check", () => {
6868 listRuns(app.db, orchard.id, { kind, limit: 50 });
6969 const until = async <T>(
7070 find: () => T | undefined,
71 timeoutMs = 60_000,
71 timeoutMs = 20_000,
7272 ): Promise<T> => {
7373 const deadline = Date.now() + timeoutMs;
7474 while (Date.now() < deadline) {
7575 const found = find();
7676 if (found !== undefined) return found;
77 await Bun.sleep(100);
77 await Bun.sleep(20);
7878 }
7979 throw new Error("did not happen in time");
8080 };
@@ -113,5 +113,5 @@ describe("the crew, with a stand-in Claude Code: a failing check", () => {
113113 pullChecks().find((r) => r.state === "ok"),
114114 );
115115 expect(passed.summary).toMatch(/^check passed/);
116 }, 120_000);
116 }, 15_000);
117117 });

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs