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

Allow quick e2e test reruns #9028

Merged
merged 1 commit into from
Dec 1, 2021
Merged

Allow quick e2e test reruns #9028

merged 1 commit into from
Dec 1, 2021

Conversation

m-chrzan
Copy link
Contributor

@m-chrzan m-chrzan commented Dec 1, 2021

Description

Developers could previously avoid rerunning most of the setup for e2e tests by commenting out the hooks.before() call. #6471 broke this by adding a new value on geth instances that was set only at hooks.before time, but not at hooks.restart time. With this PR, the necessary values are set in hooks.restart, allowing for e2e test reruns without having to wait for migrations and other initialization steps after having run them once.

Tested

Before, after running the governance e2e tests once, commenting out the hooks.before() call, and running the e2e tests again, the tests would fail with "Error: miner.validator address from the instance is required". With these changes, e2e tests run as expected.

Copy link
Contributor

@gastonponti gastonponti left a comment

Choose a reason for hiding this comment

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

LGTM!

@m-chrzan m-chrzan added the automerge Have PR merge automatically when checks pass label Dec 1, 2021
@mergify mergify bot merged commit ce41909 into master Dec 1, 2021
@mergify mergify bot deleted the m-chrzan/e2e-reruns branch December 1, 2021 16:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automerge Have PR merge automatically when checks pass
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants