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 flakey check tests #357

Merged
merged 1 commit into from
Mar 29, 2024
Merged

fix flakey check tests #357

merged 1 commit into from
Mar 29, 2024

Conversation

taylorsilva
Copy link
Member

At some point when adding these tests, we forgot that maps in Go do not guarantee that the order items are added is the order they'll appear in when iterating over the map: https://go.dev/blog/maps (see very last section)

This commit changes the Tags input into a slice, which does have a guaranteed order when iterating over.

Ran the tests locally many times and am no longer getting seeing any flakiness.

At some point when adding these tests, we forgot that maps in Go do not
guarantee that the order items are added is the order they'll appear in
when iterating over the map: https://go.dev/blog/maps (see very last
section)

This commit changes the `Tags` input into a slice, which does have a
guaranteed order when iterating over.

Signed-off-by: Taylor Silva <dev@taydev.net>
@taylorsilva taylorsilva merged commit 2657a0d into master Mar 29, 2024
2 checks passed
@taylorsilva taylorsilva deleted the fix-flakey-tests branch March 29, 2024 16:50
@xtremerui
Copy link
Contributor

thank you @taylorsilva !

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