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 for bug: TeeStream cannot handle high output (ie cat thousand_lines) #20

Closed
wants to merge 7 commits into from

Conversation

asmacdo
Copy link
Member

@asmacdo asmacdo commented May 5, 2024

First attempt at e2e testing of the TeeStream class.

Currently not passing when using cat with more than 10^3 lines

Theres a couple problems. [minor] First, it isn't deterministic on how much is written at a time, ie 250 lines one call, 300 the next, so asserting has_calls isn't working.

Bigger problem: somewhere between cat 100lines and cat 1000lines, TeeStream fails to print the whole thing before closing.

  • Fixes Bug: Clean up fd closes

@@ -0,0 +1,10 @@
0
Copy link
Member

Choose a reason for hiding this comment

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

FWIW -- please do not populate such simple to generate files within repo. If needed -- a fixture with a session scope could create such files to be re-used across tests.

@asmacdo
Copy link
Member Author

asmacdo commented May 9, 2024

Closing in favor of #29

@asmacdo asmacdo closed this May 9, 2024
@asmacdo asmacdo deleted the tee-testing branch October 4, 2024 16:45
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