Public: anyone can read this; the crew can change it.
Full suite red: 5 files in check run 01m7fp9b55s7vez7ewm14hg5r1 #13359
Check · Review · Land · Live done — Landed and live in production.
scout/forge:scout/13358-full-suite-red-5-files-in-check-run-01m7 → main 3 commits fork
2 files
changed +15
−8
test/event-audience.test.ts +11 −4
| @@ -309,6 +309,7 @@ describe("who an event is for", () => { | ||
| 309 | 309 | }); |
| 310 | 310 | |
| 311 | 311 | test("the streams hold configuration back from a reader as it happens", async () => { |
| 312 | let fileSeq = 0; | |
| 312 | 313 | const read = async (path: string, headers: Record<string, string>) => { |
| 313 | 314 | const controller = new AbortController(); |
| 314 | 315 | const res = await fetch(`${base}${path}`, { |
| @@ -332,7 +333,7 @@ describe("who an event is for", () => { | ||
| 332 | 333 | await Bun.sleep(150); |
| 333 | 334 | await commitToBranch(app, alice, repo, { |
| 334 | 335 | message: "more", |
| 335 | files: [{ path: `f-${Date.now()}.txt`, content: "x\n" }], | |
| 336 | files: [{ path: `f-${Date.now()}-${++fileSeq}.txt`, content: "x\n" }], | |
| 336 | 337 | }); |
| 337 | 338 | const hook = createWebhook(app, alice, repo, { url: `${HOOK}-live` }); |
| 338 | 339 | if (!hook.ok) throw new Error(String(hook.error)); |
| @@ -341,11 +342,17 @@ describe("who an event is for", () => { | ||
| 341 | 342 | await pump; |
| 342 | 343 | return text; |
| 343 | 344 | }; |
| 344 | for (const path of ["/alice/open/stream", "/events"]) { | |
| 345 | const stranger = await read(path, {}); | |
| 345 | // All four readers at once: each waits out its own connect-and-event window, so one after | |
| 346 | // another they cost four windows (2 s); together they cost one. | |
| 347 | const paths = ["/alice/open/stream", "/events"]; | |
| 348 | const texts = await Promise.all( | |
| 349 | paths.flatMap((path) => [read(path, {}), read(path, { authorization: `Bearer ${aliceToken}` })]), | |
| 350 | ); | |
| 351 | for (let i = 0; i < paths.length; i++) { | |
| 352 | const stranger = texts[i * 2]!; | |
| 353 | const admin = texts[i * 2 + 1]!; | |
| 346 | 354 | expect(stranger).toContain("push"); |
| 347 | 355 | expect(stranger).not.toContain("hooks.example.test"); |
| 348 | const admin = await read(path, { authorization: `Bearer ${aliceToken}` }); | |
| 349 | 356 | expect(admin).toContain("hooks.example.test"); |
| 350 | 357 | } |
| 351 | 358 | }, 20_000); |
test/tui-signins-password.test.ts +4 −4
| @@ -131,9 +131,9 @@ describe("changing your password from the terminal", () => { | ||
| 131 | 131 | await h.type(WRONG); |
| 132 | 132 | expect(h.text()).toContain("•".repeat(WRONG.length)); |
| 133 | 133 | await h.press("enter"); |
| 134 | await h.type(NEW); | |
| 134 | await h.paste(NEW); | |
| 135 | 135 | await h.press("enter"); |
| 136 | await h.type(NEW); | |
| 136 | await h.paste(NEW); | |
| 137 | 137 | await h.press("enter"); |
| 138 | 138 | expect(h.text()).toContain(CHANGE_PASSWORD_WORDS.bad_credentials); |
| 139 | 139 | h.stop(); |
| @@ -217,9 +217,9 @@ describe("changing your password from the terminal", () => { | ||
| 217 | 217 | await h.press("p"); |
| 218 | 218 | await h.type(OLD); |
| 219 | 219 | await h.press("enter"); |
| 220 | await h.type(NEW); | |
| 220 | await h.paste(NEW); | |
| 221 | 221 | await h.press("enter"); |
| 222 | await h.type(NEW); | |
| 222 | await h.paste(NEW); | |
| 223 | 223 | await h.press("enter"); |
| 224 | 224 | expect(h.text()).toContain(CHANGE_PASSWORD_WORDS.throttled); |
| 225 | 225 | h.stop(); |
new above
offline