Skip to content

test: drain PTY output before assertions - #969

Merged
ryanfowler merged 2 commits into
mainfrom
test/drain-pty-capture
Aug 8, 2026
Merged

test: drain PTY output before assertions#969
ryanfowler merged 2 commits into
mainfrom
test/drain-pty-capture

Conversation

@ryanfowler

Copy link
Copy Markdown
Owner

Summary

  • add a PTY capture helper that waits for the reader thread to drain output
  • use the helper for midstream binary detection output assertions
  • prevent the final warning from racing the Linux CI test

Validation

  • cargo fmt --check
  • cargo clippy --locked --all-targets --all-features -- -D warnings
  • cargo test --locked --all-features --test terminal terminal_stdout_midstream_binary_detection -- --exact (3 consecutive runs)

Wait for the PTY capture thread to finish before collecting the large binary-response fixture output. This prevents the final warning from racing the test assertion on Linux.
@ryanfowler
ryanfowler merged commit cdeafc8 into main Aug 8, 2026
4 checks passed
@ryanfowler
ryanfowler deleted the test/drain-pty-capture branch August 8, 2026 10:43
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