Skip to content

Commit

Permalink
Temp: add debug output
Browse files Browse the repository at this point in the history
Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>
  • Loading branch information
jimmykarily committed May 16, 2023
1 parent 548bf2e commit 9970a28
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/upgrade_latest_k8s_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ var _ = Describe("k3s upgrade test from k8s", Label("upgrade-latest-with-kuberne
By("wait system-upgrade-controller")
Eventually(func() string {
out, _ := kubectl(vm, "get pods -A")
fmt.Printf("out = %+v\n", out)
return out
}, 900*time.Second, 10*time.Second).Should(ContainSubstring("system-upgrade-controller"))

Expand All @@ -163,7 +164,7 @@ var _ = Describe("k3s upgrade test from k8s", Label("upgrade-latest-with-kuberne

By("checking upgraded version")
Eventually(func() string {
out, _ = kubectl(vm, "get pods -A")
out, _ = kubectl(vm, "describe jobs -A")
version, err := vm.Sudo(getVersionCmd)
if err != nil || !strings.Contains(version, "v") {
// If we met error, keep going with the Eventually
Expand Down

0 comments on commit 9970a28

Please sign in to comment.