Skip to content

Commit

Permalink
fix: fix build error on e2e tests (#339)
Browse files Browse the repository at this point in the history
  • Loading branch information
goncalo-rodrigues authored Jul 7, 2022
1 parent 63fd9d2 commit bceb0d6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/e2e/kubernetes_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,7 @@ func testKubernetesDeployment(t *testing.T, kubecfg string) {
t.Fatal(fmt.Errorf("command failed.\n err: %s\noutput: %s", err.Error(), string(out)))
}

var o GetNodesOutput
allRunning := false
for i := 0; i < 10 && !allRunning; i++ {
t.Logf("waiting 5 seconds to check if pods are running")
Expand All @@ -187,7 +188,7 @@ func testKubernetesDeployment(t *testing.T, kubecfg string) {
t.Fatal(fmt.Errorf("command failed.\n err: %s\noutput: %s", err.Error(), string(out)))
}

o := GetNodesOutput{}
o = GetNodesOutput{}
err = json.Unmarshal(out, &o)
if err != nil {
t.Fatal(fmt.Errorf("output cant be parsed: %s", err))
Expand Down

0 comments on commit bceb0d6

Please sign in to comment.