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

Keymanager mock cleanup #12341

Merged
merged 3 commits into from
Apr 27, 2023
Merged

Conversation

kasey
Copy link
Contributor

@kasey kasey commented Apr 27, 2023

What type of PR is this?
Bug fix

What does this PR do? Why is it needed?

I started out trying to fix a racy test in the validator code and wound up doing a cleanup pass on how we set up the mock keymanager. Goal is to make test setup more concise and easy to read, get rid of unnecessary boilerplate. Most importantly give tests control over the ordering of the return value from the FetchValidatingPublicKeys mock method, since the mock tests are a bit fragile and can break due to the non-deterministic ordering from iterating over the keymap.

@kasey kasey requested a review from a team as a code owner April 27, 2023 04:55
@prylabs-bulldozer prylabs-bulldozer bot merged commit ba9a744 into develop Apr 27, 2023
@delete-merged-branch delete-merged-branch bot deleted the fix-flake-validators-exited branch April 27, 2023 05:25
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