From 07b8c5c84ddd77286ed8f5808fde511f78c9560e Mon Sep 17 00:00:00 2001 From: ptrus Date: Tue, 12 Jan 2021 11:40:56 +0100 Subject: [PATCH] go/e2e/governance-upgrade: wait for compute nodes to be ready --- .changelog/3618.internal.md | 1 + .../scenario/e2e/runtime/governance_upgrade.go | 8 ++++++++ 2 files changed, 9 insertions(+) create mode 100644 .changelog/3618.internal.md diff --git a/.changelog/3618.internal.md b/.changelog/3618.internal.md new file mode 100644 index 00000000000..a650c1cb985 --- /dev/null +++ b/.changelog/3618.internal.md @@ -0,0 +1 @@ +go/e2e/governance-upgrade: wait for compute nodes to be ready diff --git a/go/oasis-test-runner/scenario/e2e/runtime/governance_upgrade.go b/go/oasis-test-runner/scenario/e2e/runtime/governance_upgrade.go index 085e18f3cfa..ba6978650d8 100644 --- a/go/oasis-test-runner/scenario/e2e/runtime/governance_upgrade.go +++ b/go/oasis-test-runner/scenario/e2e/runtime/governance_upgrade.go @@ -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")