Skip to content

Commit

Permalink
chore(e2e): move block production monitor before any transactions (#3132
Browse files Browse the repository at this point in the history
)
  • Loading branch information
gartnera authored Nov 12, 2024
1 parent 7c70809 commit edebb7a
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions cmd/zetae2e/local/local.go
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,11 @@ func localE2ETest(cmd *cobra.Command, _ []string) {
)
noError(err)

// monitor block production to ensure we fail fast if there are consensus failures
// this is not run in an errgroup since only returning an error will not exit immedately
// this needs to be early to quickly detect consensus failure during genesis
go monitorBlockProductionExit(ctx, conf)

// set the authority client to the zeta tx server to be able to query message permissions
deployerRunner.ZetaTxServer.SetAuthorityClient(deployerRunner.AuthorityClient)

Expand All @@ -190,10 +195,6 @@ func localE2ETest(cmd *cobra.Command, _ []string) {
noError(deployerRunner.FundEmissionsPool())
}

// monitor block production to ensure we fail fast if there are consensus failures
// this is not run in an errgroup since only returning an error will not exit immedately
go monitorBlockProductionExit(ctx, conf)

// wait for keygen to be completed
// if setup is skipped, we assume that the keygen is already completed
if !skipSetup {
Expand Down

0 comments on commit edebb7a

Please sign in to comment.