Skip to content

Commit

Permalink
Try fix the upgrade test
Browse files Browse the repository at this point in the history
  • Loading branch information
ktsakalozos committed Jul 11, 2024
1 parent 76faa15 commit 0856565
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tests/test-upgrade.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,9 +142,14 @@ def test_upgrade(self):
# Refresh the snap to the target
if upgrade_to.endswith(".snap"):
cmd = "sudo snap install {} --classic --dangerous".format(upgrade_to)
run_until_success(cmd)
cmd = "/snap/microk8s/current/connect-all-interfaces.sh"
run_until_success(cmd)
time.sleep(20)
else:
cmd = "sudo snap refresh microk8s --channel={}".format(upgrade_to)
run_until_success(cmd)
run_until_success(cmd)

# Allow for the refresh to be processed
time.sleep(10)
wait_for_installation()
Expand Down

0 comments on commit 0856565

Please sign in to comment.