Skip to content

[Collections] Fix flakey tests #3409

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

Merged
merged 1 commit into from
Apr 16, 2021
Merged

Conversation

yim-lee
Copy link
Contributor

@yim-lee yim-lee commented Apr 16, 2021

Motivation:
Some of the tests generate random HTTP status code to simulate bad collection URLs, but recent code changes distinguish status 404 from others and return a notFound error instead of unavailable. This causes tests to fail randomly.

Modification:
Change range of random generated status code to start from 500 such that 404 is excluded.

Motivation:
Some of the tests generate random HTTP status code to simulate bad collection URLs, but recent code changes distinguish status `404` from others and return a `notFound` error instead of `unavailable`. This causes tests to fail randomly.

Modification:
Change range of random generated status code to start from 500 such that `404` is excluded.
@yim-lee
Copy link
Contributor Author

yim-lee commented Apr 16, 2021

@swift-ci please smoke test

@yim-lee yim-lee merged commit 0b9c0d8 into swiftlang:main Apr 16, 2021
@yim-lee yim-lee deleted the bad-collection-tests branch April 16, 2021 18:41
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.

3 participants