From 085656528e4eb79a2dc57cdd522503506de1b191 Mon Sep 17 00:00:00 2001 From: Konstantinos Tsakalozos Date: Thu, 11 Jul 2024 15:23:54 +0200 Subject: [PATCH] Try fix the upgrade test --- tests/test-upgrade.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/test-upgrade.py b/tests/test-upgrade.py index 68dc7b0d05..c328bb8888 100644 --- a/tests/test-upgrade.py +++ b/tests/test-upgrade.py @@ -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()