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 test_incorrect_inactive_validator by using correct source_address #4029

Merged
merged 1 commit into from
Dec 2, 2024

Conversation

hwwhww
Copy link
Contributor

@hwwhww hwwhww commented Nov 29, 2024

Issue

The not is_active_validator(validator, get_current_epoch(state)) case in process_withdrawal_request was not covered by test cases.

image

How did I fix it

  1. For the test scenario test_incorrect_inactive_validator, the source address should be filled with the correct address.
  2. There is no change to run_withdrawal_request_processing - I only moved it to the top for the test file.

Copy link
Collaborator

@mkalinin mkalinin left a comment

Choose a reason for hiding this comment

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

Good catch! 👍

Copy link
Member

@jtraglia jtraglia left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@jtraglia jtraglia merged commit 30aed6c into dev Dec 2, 2024
26 checks passed
@jtraglia jtraglia deleted the fix-test-case branch December 2, 2024 14:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants