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

e2e: Fix flaky network reset test on Windows #1254

Merged
merged 1 commit into from
Mar 17, 2025
Merged

e2e: Fix flaky network reset test on Windows #1254

merged 1 commit into from
Mar 17, 2025

Conversation

masewo
Copy link
Contributor

@masewo masewo commented Mar 14, 2025

This pull request includes a small change to the internal/e2e/e2e_test.go file. The change introduces a delay of 100 milliseconds because the e2e test occasionally failed on the Windows platform.

  • internal/e2e/e2e_test.go: Added a 100-millisecond delay after encountering a fatal error to ensure proper timing in the test execution.

Hint

An alternative solution could be to use tcpConn.CloseWrite() between the conn.Write() and the tcpConn.Close().

I did a tcpdump and it also sends a RST, but maybe it changes the purpose of this e2e test too much.

Copy link
Member

@Acconut Acconut left a comment

Choose a reason for hiding this comment

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

Thank you! Let's hope this makes the test pass reliably!

@Acconut Acconut merged commit c38c091 into tus:main Mar 17, 2025
7 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