MCPcopy Create free account
hub / github.com/cli/cli / stream

Function stream

evals/src/review-loop.test.ts:301–305  ·  view source on GitHub ↗
(...times: number[])

Source from the content-addressed store, hash-verified

299test("one reshaped event cannot stand in for several review rounds", async () => {
300 const facts = await completedLoop();
301 const stream = (...times: number[]): GhCall => ({
302 ...wait("stream", 5_000),
303 arguments: ["event", "listen", "--resource", prUrl, "--event", "review", "--follow", "--jq", ".id"],
304 output: times.map(at => ({ stream: "stdout", at, text: `event-${at}\n` })),
305 });
306 for (const action of facts.snapshot.actions.filter(action => action.trigger === "wait")) action.callId = "stream";
307 facts.calls = [stream(12_000, 32_000, 42_000)];
308 assert.equal((await new EventRouteGrader(async () => facts).grade({ trajectory })).passed, true);

Callers 1

Calls 1

waitFunction · 0.70

Tested by

no test coverage detected