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

Make RTN17 tests resilient to concurrent requests #959

Closed
wants to merge 1 commit into from

Conversation

tcard
Copy link
Contributor

@tcard tcard commented Dec 23, 2019

In the test, we were checking that each fallback host got exactly one request. But that's more than we need to check; we just need to check that all fallback hosts are used, in the fake-random order we set.

That extra strictness was causing the test to fail sometimes, as some request would sneak in during the test and duplicate a fallback host. This is because we first set each fallback host as rest.prioritizedHost, then check if it works, so in between that, all requests are sent to that host.

I still don't know why did some extra requests happened since I couldn't reproduce this on my machine and we have limited visibility into CI, but the point is, there's no reason why that should affect the test.

Fixes #931.

@tcard tcard requested a review from ricardopereira December 23, 2019 23:25
@tcard tcard self-assigned this Dec 23, 2019
@tcard tcard changed the title Make RTN17 tests resilient to concurrent requests. Make RTN17 tests resilient to concurrent requests Dec 23, 2019
@tcard
Copy link
Contributor Author

tcard commented Dec 24, 2019

Superseded by #961.

@tcard tcard closed this Dec 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Flaky test: RTN17* (fallback hosts)
1 participant