From b79209cdb50a9ccd8614d01925348437c14cbeb9 Mon Sep 17 00:00:00 2001 From: Onur Solmaz <2453968+osolmaz@users.noreply.github.com> Date: Mon, 13 Apr 2026 22:47:55 +0200 Subject: [PATCH] Tests: format streamed unknown-tool guard coverage --- src/agents/pi-embedded-runner/run/attempt.test.ts | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/agents/pi-embedded-runner/run/attempt.test.ts b/src/agents/pi-embedded-runner/run/attempt.test.ts index 0466f4402e9..ab47465ea8a 100644 --- a/src/agents/pi-embedded-runner/run/attempt.test.ts +++ b/src/agents/pi-embedded-runner/run/attempt.test.ts @@ -1725,11 +1725,9 @@ describe("wrapStreamFnSanitizeMalformedToolCalls", () => { ); const wrapped = wrapStreamFnSanitizeMalformedToolCalls(baseFn as never, new Set(["read"])); - const stream = wrapped( - { api: "google-gemini" } as never, - { messages } as never, - {} as never, - ) as FakeWrappedStream | Promise; + const stream = wrapped({ api: "google-gemini" } as never, { messages } as never, {} as never) as + | FakeWrappedStream + | Promise; await Promise.resolve(stream); expect(baseFn).toHaveBeenCalledTimes(1);