Skip to content

Commit 0856565

Browse files
committed
Try fix the upgrade test
1 parent 76faa15 commit 0856565

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

tests/test-upgrade.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,9 +142,14 @@ def test_upgrade(self):
142142
# Refresh the snap to the target
143143
if upgrade_to.endswith(".snap"):
144144
cmd = "sudo snap install {} --classic --dangerous".format(upgrade_to)
145+
run_until_success(cmd)
146+
cmd = "/snap/microk8s/current/connect-all-interfaces.sh"
147+
run_until_success(cmd)
148+
time.sleep(20)
145149
else:
146150
cmd = "sudo snap refresh microk8s --channel={}".format(upgrade_to)
147-
run_until_success(cmd)
151+
run_until_success(cmd)
152+
148153
# Allow for the refresh to be processed
149154
time.sleep(10)
150155
wait_for_installation()

0 commit comments

Comments
 (0)