Skip to content

Commit

Permalink
e2e: Fix test for provisioner type in status output
Browse files Browse the repository at this point in the history
  • Loading branch information
abukosek committed Jul 3, 2023
1 parent 337354b commit b29df67
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Empty file added .changelog/5302.trivial.md
Empty file.
5 changes: 3 additions & 2 deletions go/oasis-test-runner/scenario/e2e/runtime/runtime_upgrade.go
Original file line number Diff line number Diff line change
Expand Up @@ -202,8 +202,9 @@ func (sc *runtimeUpgradeImpl) ensureActiveVersion(ctx context.Context, v version
return fmt.Errorf("%s: failed to query status: %w", node.Name, err)
}

if status.Runtimes[rt.ID()].Provisioner != "sandbox" {
return fmt.Errorf("%s: unexpected runtime provisioner for runtime '%s': %s", node.Name, rt.ID(), status.Runtimes[rt.ID()].Provisioner)
provisioner := status.Runtimes[rt.ID()].Provisioner
if provisioner != "sandbox" && provisioner != "sgx" {
return fmt.Errorf("%s: unexpected runtime provisioner for runtime '%s': %s", node.Name, rt.ID(), provisioner)
}

cs := status.Runtimes[rt.ID()].Committee
Expand Down

0 comments on commit b29df67

Please sign in to comment.