tests/common/util.rs panics with Broken pipe error on some targets when pipe_in() is used in tests
Open
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 24.1k
- Forks
- 2k
- Avg merge
- 1d 5h
- Merged PRs (30d)
- 365
Description
This seems to be the culprit. Maybe add handling the errors with match/if let instead of expect().unwrap() ?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with tests/common/util.rs at lines 2014-2015 and trace how pipe_in() is used by the affected tests. Replace the unconditional failure path only after checking the expected behavior for a broken pipe on different targets. Done means the relevant tests no longer panic with a Broken pipe error when pipe_in() is used.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- testing-qa
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100