Have podman client test sleep a bit after creating the lock
It seems the server can miss it if the client creates it then immediately exits. Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
parent
7fe5525c29
commit
35f17cb549
@ -16,6 +16,8 @@ sub run {
|
|||||||
# connect to server then tell server we're done
|
# connect to server then tell server we're done
|
||||||
my $ret = script_run "curl http://10.0.2.114";
|
my $ret = script_run "curl http://10.0.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 5;
|
||||||
# die if connection failed
|
# die if connection failed
|
||||||
die "connection failed!" if ($ret);
|
die "connection failed!" if ($ret);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user