Public: anyone can read this; the crew can change it.
Full suite red: test/contribute-refusals.test.ts #9522
Check · Review · Land · Live done — Landed and live in production.
scout/forge:scout/9425-full-suite-red-test-contribute-refusals → main 1 commit fork 1 thread · 1 unresolved
1 file
changed +8
−2
test/contribute-refusals.test.ts +8 −2
| @@ -25,6 +25,12 @@ const ME = "me"; | ||
| 25 | 25 | const OWNER = "octo"; |
| 26 | 26 | const PASSWORD = "refusals-account-pass"; |
| 27 | 27 | |
| 28 | /** | |
| 29 | * This is the one test that really forks, mirrors and commits through git; | |
| 30 | * on a loaded full-suite machine that outruns bun's 5 s default (#9425). | |
| 31 | */ | |
| 32 | const SLOW = 30_000; | |
| 33 | ||
| 28 | 34 | const read = async <T>(response: Response): Promise<T> => |
| 29 | 35 | (await response.json()) as T; |
| 30 | 36 | |
| @@ -172,7 +178,7 @@ describe("contribute refusals", () => { | ||
| 172 | 178 | ); |
| 173 | 179 | expect(job?.stage).toBe("done"); |
| 174 | 180 | mirrorPath = `${job!.repo!.ownerName}/${job!.repo!.name}`; |
| 175 | }); | |
| 181 | }, SLOW); | |
| 176 | 182 | |
| 177 | 183 | afterAll(async () => { |
| 178 | 184 | fake.stop(); |
| @@ -251,5 +257,5 @@ describe("contribute refusals", () => { | ||
| 251 | 257 | expect(branches.items.find((b) => b.name === "fix-typo")?.oid).toBe( |
| 252 | 258 | failed.commit.commitOid, |
| 253 | 259 | ); |
| 254 | }); | |
| 260 | }, SLOW); | |
| 255 | 261 | }); |
new above
offline
Nit: the comment says this is the one test that forks, but SLOW is applied to the beforeAll setup and one test. Say "the setup and this test".