Skip to content

Fix cargo test when running in a terminal - #19

Merged
JohanLorenzo merged 1 commit into
mozilla:mainfrom
yjugl:fix-tests-in-tty
Jun 25, 2026
Merged

JohanLorenzo merged 1 commit into
mozilla:mainfrom
yjugl:fix-tests-in-tty

Conversation

@yjugl

@yjugl yjugl commented Jun 25, 2026

Copy link
Copy Markdown
Contributor

Make existing tests deterministically use the no-tty path. Previously, running cargo test in a terminal would block on reading stdin unless </dev/null was used. This was caused by tests reaching the interactive path for missing parameters.

Use this as an opportunity to define some more tests, though none that requires true interaction with stdin.

Make existing tests deterministically use the no-tty path.
Previously, running cargo test in a terminal would block
on reading stdin unless </dev/null was used. This was
caused by tests reaching the interactive path for missing
parameters.

Use this as an opportunity to define some more tests,
though none that requires true interaction with stdin.
@yjugl
yjugl requested a review from JohanLorenzo as a code owner June 25, 2026 14:18

@JohanLorenzo JohanLorenzo left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! I did have issues with some of these e2e tests too but I thought I had them all fixed.

@JohanLorenzo
JohanLorenzo merged commit ba7ebd5 into mozilla:main Jun 25, 2026
6 checks passed
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