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 flaky unit test for stateToString #60

Merged
merged 1 commit into from
Oct 15, 2023
Merged

Fix flaky unit test for stateToString #60

merged 1 commit into from
Oct 15, 2023

Conversation

selinali2010
Copy link
Collaborator

Filters in the default state are sorted by id value and not in frequency order. This meant the filter information that is converted to a string and stored in the aqua.txt file is not in frequency order. Our unit test that makes this assumption is thus occasionally flaky when the ids causes the filters to be ordered differently.

Fixed this issue by tweaking the regex check to no longer be dependent on filter order. Also added additional checks to verify that all filters are converted to string format correctly.

Copy link
Collaborator

@xenown xenown left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Test passes locally for me.

@selinali2010 selinali2010 merged commit 72f1d7a into main Oct 15, 2023
2 checks passed
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