Skip to content

test(llm): cover midstream timeout gaps - #194

Merged
LeXwDeX merged 2 commits into
devfrom
test/midstream-timeout
Aug 8, 2026
Merged

test(llm): cover midstream timeout gaps#194
LeXwDeX merged 2 commits into
devfrom
test/midstream-timeout

Conversation

@LeXwDeX

@LeXwDeX LeXwDeX commented Aug 8, 2026

Copy link
Copy Markdown
Owner

Summary

  • add a deterministic SSE fixture that emits one valid text delta and then stalls
  • fence on the public LLMClient.stream delivery before advancing TestClock
  • assert the next inter-frame gap ends with the existing Transport/Timeout error

Validation

  • cd packages/llm && bun test test/transport-timeout.test.ts — 3 consecutive runs, each 8 pass / 0 fail
  • cd packages/llm && bun typecheck — pass
  • mutation: temporarily bypassing Stream.timeoutOrElse makes the new test fail 0 pass / 1 fail; production code fully restored

Scope

  • Batch B ticket 03 only
  • no production code, timeout default, error vocabulary, or protocol changes

@LeXwDeX
LeXwDeX merged commit a149102 into dev Aug 8, 2026
5 checks passed
@LeXwDeX
LeXwDeX deleted the test/midstream-timeout branch August 8, 2026 14:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant