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

chore(tests): Split Receiver::cancel out of Receiver::wait #3037

Closed
wants to merge 1 commit into from

Conversation

ktff
Copy link
Contributor

@ktff ktff commented Jul 11, 2020

Splits crate::test_util::Receiver::wait method into wait and cancel. Somel of the usages of this method were having a race as they were expecting that the method would wait for the tcp channel to close, which wasn't the case. Instead the method was canceling the channel which caused a race. Only test that needs the cancel was tcp_stream.

Similar how in #2862 crate::test_util::CountReceiver::wait was split.

Ref. #2978
Fixes test_max_size_resume

Signed-off-by: ktf <[email protected]>
@ktff ktff added the domain: tests Anything related to Vector's internal tests label Jul 11, 2020
@ktff ktff self-assigned this Jul 11, 2020
@ktff ktff requested a review from bruceg July 11, 2020 23:51
@ktff
Copy link
Contributor Author

ktff commented Jul 12, 2020

Nope, it's not that.

@ktff ktff closed this Jul 12, 2020
@binarylogic binarylogic deleted the ktff/receiver_wait branch July 23, 2020 17:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
domain: tests Anything related to Vector's internal tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Get rid of flaky tests
1 participant