Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions tests/responses/stalled-reader-memory.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,10 @@ async function stalledThenDrained(run: () => Promise<Response>, upstreamFrames:
}

describe("upstream read-ahead under a stalled reader (#8601)", () => {
// Exercise the inspection tee on every host; Windows' eager relay is covered below.
beforeEach(() => setRelayPlatformForTests("linux"));
afterEach(() => setRelayPlatformForTests(undefined));

test("a local request keeps the inspection read-ahead and its bytes", async () => {
const run = await stalledThenDrained(() => handleResponses(request(), config, { model: "", provider: "" }));
expect(run.pulls[0]).toBeGreaterThanOrEqual(32);
Expand Down
Loading