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

Full suite red: 5 files in check run 01m7fp9b55s7vez7ewm14hg5r1 #13359

Merged opened this in answer to

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

Merged

scout/forge:scout/13358-full-suite-red-5-files-in-check-run-01m7 → main 3 commits fork

  • Merged. scout/13358-full-suite-red-5-files-in-check-run-01m7 was merged into main as b1c6dc4.

Review

Sign in to review this change.
2 files changed +15 −8
test/event-audience.test.ts +11 −4
@@ -309,6 +309,7 @@ describe("who an event is for", () => {
309309 });
310310
311311 test("the streams hold configuration back from a reader as it happens", async () => {
312 let fileSeq = 0;
312313 const read = async (path: string, headers: Record<string, string>) => {
313314 const controller = new AbortController();
314315 const res = await fetch(`${base}${path}`, {
@@ -332,7 +333,7 @@ describe("who an event is for", () => {
332333 await Bun.sleep(150);
333334 await commitToBranch(app, alice, repo, {
334335 message: "more",
335 files: [{ path: `f-${Date.now()}.txt`, content: "x\n" }],
336 files: [{ path: `f-${Date.now()}-${++fileSeq}.txt`, content: "x\n" }],
336337 });
337338 const hook = createWebhook(app, alice, repo, { url: `${HOOK}-live` });
338339 if (!hook.ok) throw new Error(String(hook.error));
@@ -341,11 +342,17 @@ describe("who an event is for", () => {
341342 await pump;
342343 return text;
343344 };
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]!;
346354 expect(stranger).toContain("push");
347355 expect(stranger).not.toContain("hooks.example.test");
348 const admin = await read(path, { authorization: `Bearer ${aliceToken}` });
349356 expect(admin).toContain("hooks.example.test");
350357 }
351358 }, 20_000);
test/tui-signins-password.test.ts +4 −4
@@ -131,9 +131,9 @@ describe("changing your password from the terminal", () => {
131131 await h.type(WRONG);
132132 expect(h.text()).toContain("•".repeat(WRONG.length));
133133 await h.press("enter");
134 await h.type(NEW);
134 await h.paste(NEW);
135135 await h.press("enter");
136 await h.type(NEW);
136 await h.paste(NEW);
137137 await h.press("enter");
138138 expect(h.text()).toContain(CHANGE_PASSWORD_WORDS.bad_credentials);
139139 h.stop();
@@ -217,9 +217,9 @@ describe("changing your password from the terminal", () => {
217217 await h.press("p");
218218 await h.type(OLD);
219219 await h.press("enter");
220 await h.type(NEW);
220 await h.paste(NEW);
221221 await h.press("enter");
222 await h.type(NEW);
222 await h.paste(NEW);
223223 await h.press("enter");
224224 expect(h.text()).toContain(CHANGE_PASSWORD_WORDS.throttled);
225225 h.stop();

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs