mirror of
https://github.com/anomalyco/opencode.git
synced 2026-08-24 14:43:37 -04:00
test(opencode): narrow stream error assertion
This commit is contained in:
@@ -882,7 +882,7 @@ describe("session.llm.stream", () => {
|
||||
}).pipe(Effect.flip)
|
||||
yield* Effect.promise(() => request)
|
||||
|
||||
expect(error).toBeInstanceOf(ProviderError.ResponseStreamError)
|
||||
if (!(error instanceof ProviderError.ResponseStreamError)) throw error
|
||||
expect(error.message).toBe("Provider finish_reason: network_error")
|
||||
}),
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user