Skip to content

Add tests for internal stream error paths#5931

Merged
anonrig merged 1 commit intomainfrom
yagiz/add-tests-internal-stream-error
Jan 20, 2026
Merged

Add tests for internal stream error paths#5931
anonrig merged 1 commit intomainfrom
yagiz/add-tests-internal-stream-error

Conversation

@anonrig
Copy link
Copy Markdown
Member

@anonrig anonrig commented Jan 20, 2026

The tests added with this pull-request:

Tests for WritableStreamInternalController:

  • close/flush/tryPipeFrom reject with "currently being piped to" during active pipe

Tests for ReadableStreamInternalController drainingRead:

  • Returns done=true on closed stream
  • Propagates I/O errors from underlying source
  • Rejects concurrent reads with "single pending read" error

@anonrig anonrig requested a review from jasnell January 20, 2026 15:06
@anonrig anonrig requested review from a team as code owners January 20, 2026 15:06
@codspeed-hq

This comment was marked as off-topic.

@anonrig anonrig force-pushed the yagiz/add-tests-internal-stream-error branch from 8adcc27 to 9607f83 Compare January 20, 2026 15:34
@anonrig anonrig requested a review from jasnell January 20, 2026 15:35
@anonrig anonrig merged commit 2a8e04f into main Jan 20, 2026
22 checks passed
@anonrig anonrig deleted the yagiz/add-tests-internal-stream-error branch January 20, 2026 17:59
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.

2 participants