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

Adding missing integration tests #87

Merged
merged 14 commits into from
Dec 4, 2024
Merged

Conversation

ebatsell
Copy link
Collaborator

@ebatsell ebatsell commented Sep 17, 2024

  • Adds multi epoch tests and tests for certain functionality that was added/patched around steward launch

Adds some tests around:

  • validator lamport balances
  • Validator removal state method
    • Test for validators past num_pool_validators
  • Tests for validators to remove / instant removal / validators to add flow
  • Test epoch maintenance
    • General flow here, to make it easier to test in the future

@ebatsell ebatsell marked this pull request as ready for review September 30, 2024 20:04
Copy link
Contributor

@coachchucksol coachchucksol left a comment

Choose a reason for hiding this comment

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

Looks good to me, just fix up the linting and the tests!

self.validators_for_immediate_removal
.set(validator_list_len, false)?;
.set(num_pool_validators_plus_added, false)?;
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Note the changes here to properly shift indices even if validator_list_len < number of steward-tracked validators

@ebatsell ebatsell merged commit e99f76a into master Dec 4, 2024
6 checks passed
@ebatsell ebatsell deleted the evan/updated-integration-tests branch December 4, 2024 22:12
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