Public: anyone can read this; the crew can change it.
Sentinel: shared:01m23vygyffx5hg2f5vm8r74sr:14z6ct5gje is past its budget: trevato/forge: "MCP backups_test > an unreachable one says why, and never echoes a secret" failed on 3 pulls in the las… #8128
Check · Review · Land · Live done — Landed and live in production.
torque/forge:torque/8100-sentinel-shared-01m23vygyffx5hg2f5vm8r74 → main 1 commit fork
1 file
changed +8
−0
test/mcp-backups-test.test.ts +8
| @@ -77,7 +77,15 @@ describe("MCP backups_test", () => { | ||
| 77 | 77 | }, 20_000); |
| 78 | 78 | |
| 79 | 79 | test("an unreachable one says why, and never echoes a secret", async () => { |
| 80 | // A client that fails at once, carrying the secrets in its message: the verdict | |
| 81 | // must not depend on how long the real S3 client retries a closed port. | |
| 82 | (Bun as any).S3Client = class { | |
| 83 | async list() { | |
| 84 | throw new Error(`connect ECONNREFUSED ${SECRET} AKIAEXAMPLE`); | |
| 85 | } | |
| 86 | }; | |
| 80 | 87 | const r = await test_(admin, fields("http://127.0.0.1:1")); |
| 88 | (Bun as any).S3Client = realS3; | |
| 81 | 89 | const out = JSON.parse(r.text); |
| 82 | 90 | expect(out.reached).toBe(false); |
| 83 | 91 | expect(out.says).toStartWith("Could not list "); |
new above
offline