Skip to content

Allow quick e2e test reruns#9028

Merged
mergify[bot] merged 1 commit intomasterfrom
m-chrzan/e2e-reruns
Dec 1, 2021
Merged

Allow quick e2e test reruns#9028
mergify[bot] merged 1 commit intomasterfrom
m-chrzan/e2e-reruns

Conversation

@m-chrzan
Copy link
Copy Markdown
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
Copy Markdown
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!

@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

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants