Skip to content

Commit

Permalink
go/e2e/governance-upgrade: wait for compute nodes to be ready
Browse files Browse the repository at this point in the history
  • Loading branch information
ptrus committed Jan 12, 2021
1 parent 37c096d commit 07b8c5c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions .changelog/3618.internal.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
go/e2e/governance-upgrade: wait for compute nodes to be ready
Original file line number Diff line number Diff line change
Expand Up @@ -479,6 +479,14 @@ func (sc *governanceConsensusUpgradeImpl) Run(childEnv *env.Env) error { // noli
if err != nil {
return fmt.Errorf("can't get registered test entity: %w", err)
}

// Wait for compute nodes to be ready.
sc.Logger.Info("waiting for compute nodes to be ready")
for _, n := range sc.Net.ComputeWorkers() {
if err = n.WaitReady(sc.ctx); err != nil {
return fmt.Errorf("failed to wait for a compute node: %w", err)
}
}
}

sc.Logger.Info("final epoch transition")
Expand Down

0 comments on commit 07b8c5c

Please sign in to comment.