From 0a4a787c03587dfb40d5290d6b0ec9b9c963db7d Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Wed, 22 Jan 2020 10:40:46 +0100 Subject: [PATCH] Give Firefox longer to start It seems to take a long time sometimes for some reason. Can't pin it down but it's causing test flakes, so let's just let it be. It *may* happen when chrony adjusts the system clock just as Firefox is starting, for some reason. Signed-off-by: Adam Williamson --- lib/cockpit.pm | 2 +- lib/freeipa.pm | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/cockpit.pm b/lib/cockpit.pm index 8ddeb1ee..5a538151 100644 --- a/lib/cockpit.pm +++ b/lib/cockpit.pm @@ -21,7 +21,7 @@ sub start_cockpit { disable_firefox_studies; # run firefox directly in X as root. never do this, kids! type_string "startx /usr/bin/firefox -width 1024 -height 768 http://localhost:9090\n"; - assert_screen "cockpit_login", 30; + assert_screen "cockpit_login", 60; # this happened on early Modular Server composes... record_soft_failure "Unbranded Cockpit" if (match_has_tag "cockpit_login_unbranded"); wait_still_screen 5; diff --git a/lib/freeipa.pm b/lib/freeipa.pm index cd235744..93f97cac 100644 --- a/lib/freeipa.pm +++ b/lib/freeipa.pm @@ -43,7 +43,7 @@ sub start_webui { assert_script_run "sed -i -e 's,enable_xauth=1,enable_xauth=0,g' /usr/bin/startx"; disable_firefox_studies; type_string "startx /usr/bin/firefox -width 1024 -height 768 https://ipa001.domain.local\n"; - assert_screen ["freeipa_webui_login", $user_screen, "firefox_certificate_error"], 30; + assert_screen ["freeipa_webui_login", $user_screen, "firefox_certificate_error"], 60; if (match_has_tag "firefox_certificate_error") { # https://bugzilla.mozilla.org/show_bug.cgi?id=1530429 record_soft_failure "Certificate validation error - likely Firefox https://bugzilla.mozilla.org/show_bug.cgi?id=1530429";