1
0
mirror of https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git synced 2024-11-22 14:03:09 +00:00

Wait longer before exiting _podman_client

At the end of _podman_client we create a mutex that we want the
server to pick up. If we exit too soon, the mutex goes away and
the server test fails. 5 seconds turns out to be not enough of a
wait because, although the server retries the lock call every
5 seconds, it can hit `api_call_2 failed` and wait 10 seconds
before retrying. Let's wait 30 seconds just to be safe.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
Adam Williamson 2022-03-08 14:25:40 -08:00
parent 9be26becc5
commit bace4170f4

View File

@ -16,7 +16,9 @@ sub run {
my $ret = script_run "curl http://172.16.2.114"; my $ret = script_run "curl http://172.16.2.114";
mutex_create "podman_connect_done"; mutex_create "podman_connect_done";
# sleep a bit to give server time to pick up the mutex # sleep a bit to give server time to pick up the mutex
sleep 5; # server tries every 5 seconds, but an attempt can fail,
# and wait 10 seconds before retry
sleep 30;
# die if connection failed # die if connection failed
die "connection failed!" if ($ret); die "connection failed!" if ($ret);
} }