Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: fix autoclient flakiness #9769

Merged
merged 1 commit into from
Mar 29, 2023
Merged

test: fix autoclient flakiness #9769

merged 1 commit into from
Mar 29, 2023

Conversation

guseggert
Copy link
Contributor

The test trims all whitespace bytes from the output of 'ipfs cat' but if the random bytes end in a whitespace char then it trims that too, resulting in random test failure.

Instead this updates the test harness to only trim a single trailing newline char, so that it doesn't end up chomping legitimate output.

The test trims all whitespace bytes from the output of 'ipfs cat' but
if the random bytes end in a whitespace char then it trims that too,
resulting in random test failure.

Instead this updates the test harness to only trim a single trailing
newline char, so that it doesn't end up chomping legitimate output.
@guseggert guseggert self-assigned this Mar 29, 2023
@guseggert guseggert marked this pull request as ready for review March 29, 2023 12:32
@guseggert guseggert merged commit f4d361d into master Mar 29, 2023
@guseggert guseggert deleted the test/fix-autoclient-flake branch March 29, 2023 15:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants