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

test: make test assertions order agnostic #6005

Merged
merged 1 commit into from
Jan 6, 2025

Conversation

mrstork
Copy link
Contributor

@mrstork mrstork commented Jan 3, 2025

Summary

Fixes FRB-1557
The arrays from build-info can sometimes be returned in different orders, but toEqual compares the order of results. As a workaround, some tests were sorting the results prior to asserting on them, but one of the tests was missed causing it to be flaky.

Instead I've made the all the test assertions order agnostic, and removed sorting steps from the tests

@mrstork mrstork requested a review from a team as a code owner January 3, 2025 22:12
@mrstork mrstork merged commit 47b8fef into main Jan 6, 2025
33 checks passed
@mrstork mrstork deleted the chore/FRB-1557-make-test-results-order-agnostic branch January 6, 2025 11:45
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