From c653e182cc9d585840d78603040e6ab9351f8e8c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20R=C5=AF=C5=BEi=C4=8Dka?= Date: Thu, 2 Dec 2021 18:29:30 +0100 Subject: [PATCH] Fix iterator. --- lib/utils.pm | 1 + tests/upgrade_run.pm | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/utils.pm b/lib/utils.pm index 5bf01c93..a2a3c288 100644 --- a/lib/utils.pm +++ b/lib/utils.pm @@ -1514,6 +1514,7 @@ sub wait_until_needlematch { } else { $iterator += 1; + sleep $interval; } } if ($iterator >= $count) { diff --git a/tests/upgrade_run.pm b/tests/upgrade_run.pm index 3b343eb9..4c5bc95a 100644 --- a/tests/upgrade_run.pm +++ b/tests/upgrade_run.pm @@ -24,9 +24,9 @@ sub run { # If it is run for the first time, hit the Browse button to # speed things up. - #if (check_screen("gnome_software_browse_button")) { + if (check_screen("gnome_software_browse_button")) { assert_and_click("gnome_software_browse_button"); - #} + } # Click on the updates button. There should be no updates available, # as updates were already handled by the upgrade_preinstall test,