From d5757b054c211341bd694099ad37f0608c140bf0 Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Mon, 27 Jun 2022 09:21:48 -0700 Subject: [PATCH] Fix assert_and_click call in realmd_join_cockpit This was just doing something silly before, but with recent os-autoinst having function signatures, it actually causes the test to fail because '5' isn't a sane value for the argument this was setting before. Fix it to set the timeout, as it was trying to do all along. Signed-off-by: Adam Williamson --- tests/realmd_join_cockpit.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/realmd_join_cockpit.pm b/tests/realmd_join_cockpit.pm index b8703a9f..2b6ba948 100644 --- a/tests/realmd_join_cockpit.pm +++ b/tests/realmd_join_cockpit.pm @@ -42,7 +42,7 @@ sub run { # didn't work, try again a few times my $count = 4; while ($count > 0) { - assert_and_click "cockpit_join_domain_button", 5; + assert_and_click "cockpit_join_domain_button", timeout=>5; last if (check_screen "cockpit_join_domain", 30); } assert_screen "cockpit_join_domain";