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

Add escape hatch test in e2e test #139

Merged
merged 2 commits into from
Jul 2, 2024
Merged

Add escape hatch test in e2e test #139

merged 2 commits into from
Jul 2, 2024

Conversation

ImJeremyHe
Copy link
Member

@ImJeremyHe ImJeremyHe commented Jun 28, 2024

This PR:

Add the escape hatch test in the e2e test. Instead of triggering the switching mode by setting the mode in the SwitchSequencer, this test will use the mock light client contract directly.
This PR also fixes a bug that trigger doesn't get the hotshot liveness correctly.

This PR does not:

Do other logic

Relevant PRs:

EspressoSystems/espresso-sequencer#1650
EspressoSystems/espresso-sequencer-go#45

// Wait for the switch to be totally finished
currMsg, err := node.ConsensusNode.TxStreamer.GetMessageCount()
Require(t, err)
validatedMsg := arbutil.MessageIndex(0)
Copy link

Choose a reason for hiding this comment

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

Why are we checking the first message here?

Copy link
Member Author

Choose a reason for hiding this comment

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

Thanks. Just want to declare a variable here. Have changed to var validatedMsg arbutil.MessageIndex. This would be better

Copy link

@nomaxg nomaxg 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, just one question

@ImJeremyHe ImJeremyHe marked this pull request as ready for review July 2, 2024 02:49
@ImJeremyHe ImJeremyHe merged commit e34c95d into integration Jul 2, 2024
7 checks passed
@ImJeremyHe ImJeremyHe deleted the jh/e2e branch July 2, 2024 04:16
zacshowa pushed a commit that referenced this pull request Nov 26, 2024
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