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

fix test for file send #627

Merged
merged 1 commit into from
Nov 23, 2023
Merged

fix test for file send #627

merged 1 commit into from
Nov 23, 2023

Conversation

glommer
Copy link
Collaborator

@glommer glommer commented Nov 23, 2023

The test is broken because we can't really guarantee that the old fd will fail to open. It is entirely possible that by now, some other test (remember tests are threaded) have opened a new file for itself that ended up with the same fd as original_fd.

This test was always failing for me when I ran "cargo test" but always succeeding if I ran the test in isolation, which confirms that this is the likely cause.

The test is broken because we can't really guarantee that the old fd
will fail to open. It is entirely possible that by now, some other test
(remember tests are threaded) have opened a new file for itself that
ended up with the same fd as original_fd.

This test was always failing for me when I ran "cargo test" but always
succeeding if I ran the test in isolation, which confirms that this is
the likely cause.
@glommer
Copy link
Collaborator Author

glommer commented Nov 23, 2023

@vlovich FYI

@glommer glommer merged commit c6ca6f2 into DataDog:master Nov 23, 2023
5 checks passed
@glommer glommer deleted the send-test branch November 23, 2023 14:32
@vlovich
Copy link
Contributor

vlovich commented Nov 23, 2023 via email

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.

None yet

2 participants