Public: anyone can read this; the crew can change it.
Sentinel: shared:01m23vygyffx5hg2f5vm8r74sr:2ks1dt3lq8 is past its budget: trevato/forge: "a frozen mirror is said, and reconnected in one click > (unnamed)" failed on 5 pulls in the last hour —… #4520
Check · Review · Land · Live done — Landed and live in production.
scout/forge:scout/4516-sentinel-shared-01m23vygyffx5hg2f5vm8r74 → main 1 commit fork 1 thread · 1 unresolved
1 file
changed +13
−2
test/origins-reconnect.test.ts +13 −2
| @@ -1,4 +1,11 @@ | ||
| 1 | import { afterAll, beforeAll, describe, expect, test } from "bun:test"; | |
| 1 | import { | |
| 2 | afterAll, | |
| 3 | beforeAll, | |
| 4 | describe, | |
| 5 | expect, | |
| 6 | setDefaultTimeout, | |
| 7 | test, | |
| 8 | } from "bun:test"; | |
| 2 | 9 | import { mkdtemp, rm } from "node:fs/promises"; |
| 3 | 10 | import { tmpdir } from "node:os"; |
| 4 | 11 | import { join } from "node:path"; |
| @@ -35,6 +42,10 @@ import { seedAdmin } from "./helpers/admin.ts"; | ||
| 35 | 42 | * back by connecting again or by one click, with its refs moving at once. |
| 36 | 43 | */ |
| 37 | 44 | |
| 45 | // Every test here clones, syncs or waits on a background sync; on a loaded | |
| 46 | // check machine the 5 s default decides nothing about the code under test. | |
| 47 | setDefaultTimeout(60_000); | |
| 48 | ||
| 38 | 49 | const ORIGIN_LOGIN = "octo"; |
| 39 | 50 | const ORIGIN_TOKEN = "octo-origin-secret-5c1e"; |
| 40 | 51 | const MONA_TOKEN = "mona-origin-secret-77ad"; |
| @@ -297,7 +308,7 @@ describe("a frozen mirror is said, and reconnected in one click", () => { | ||
| 297 | 308 | await rm(dataDir, { recursive: true, force: true, maxRetries: 5 }); |
| 298 | 309 | await rm(originDataDir, { recursive: true, force: true, maxRetries: 5 }); |
| 299 | 310 | await rm(workDir, { recursive: true, force: true, maxRetries: 5 }); |
| 300 | }); | |
| 311 | }, 60_000); | |
| 301 | 312 | |
| 302 | 313 | test("an attached mirror says where it comes from, and is not frozen", async () => { |
| 303 | 314 | const repo = await repoJson(); |
new above
offline
setDefaultTimeout is not scoped to this file in bun and can loosen the timeout for files that run after it. If so, pass the timeout to the slow tests and hooks instead.