From 9cf31051687a5c931022c7a052cd686e14bdfc2c Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Wed, 17 Jan 2024 11:47:10 -0800 Subject: [PATCH] Try a longer timeout for the rpm-ostree cancels in overlay We seem to be getting quite a lot of failures in update tests where this times out. Let's try a longer timeout. Signed-off-by: Adam Williamson --- tests/rpmostree_overlay.pm | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tests/rpmostree_overlay.pm b/tests/rpmostree_overlay.pm index 2fb933b8..0d719f52 100644 --- a/tests/rpmostree_overlay.pm +++ b/tests/rpmostree_overlay.pm @@ -22,9 +22,10 @@ sub run { # Try and cancel any running rpm-ostree operations (GNOME Software # may be trying to refresh or something). This often needs to be - # done multiple times, so let's go with 6 + # done multiple times, so let's go with 6. for some reason as of + # 2024-01, this often takes a long time, so bump timeout for my $n (1 .. 6) { - script_run "rpm-ostree cancel"; + script_run "rpm-ostree cancel", timeout => 180; } # Install htop as rpm-ostree overlay. Let's have timeout defined @@ -72,7 +73,7 @@ sub run { # Cancel running operations again for my $n (1 .. 6) { - script_run "rpm-ostree cancel"; + script_run "rpm-ostree cancel", timeout => 180; } # Uninstall htop and postgresql again.