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

TestE2E_Consensus_RegisterValidator fix #257

Merged
merged 1 commit into from
May 31, 2024
Merged

Conversation

oliverbundalo
Copy link

Description

TestE2E_Consensus_RegisterValidator e2e test fixed in order to wait at least 1 block before asserts, otherwise it happens that block is not synced yet when check for 2nd validator is executed. In addition changed fields order in ValidatorInfo struct in order to reduce size from 48 to 40 bytes.

Changes include

  • Bugfix (non-breaking change that solves an issue)
  • Hotfix (change that solves an urgent issue, and requires immediate attention)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (change that is not backwards-compatible and/or changes current functionality)

Checklist

  • I have assigned this PR to myself
  • I have added at least 1 reviewer
  • I have added the relevant labels
  • I have updated the official documentation
  • I have added sufficient documentation in code

Testing

  • I have tested this code with the official test suite
  • I have tested this code manually

@oliverbundalo oliverbundalo added the tests Add, update or removal of tests label May 31, 2024
@oliverbundalo oliverbundalo self-assigned this May 31, 2024
@Stefan-Ethernal Stefan-Ethernal changed the title e2e test fix TestE2E_Consensus_RegisterValidator fix May 31, 2024
Stake *big.Int `json:"stake"`
WithdrawableRewards *big.Int `json:"withdrawableRewards"`
Address types.Address `json:"address"`

Choose a reason for hiding this comment

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

I've quickly checked, we should be fine with this change (in terms there is no fear that it is a breaking change).

@oliverbundalo oliverbundalo merged commit 42eb784 into develop May 31, 2024
10 checks passed
@oliverbundalo oliverbundalo deleted the e2e-test-fix branch May 31, 2024 12:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tests Add, update or removal of tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants