mirror of
https://github.com/containers/podman
synced 2024-10-21 01:34:37 +00:00
130-kill.bats: increase timeouts from 10s to 60s
Increase the amount of time we're willing to wait for a log message that a container should be printing to show up in the output of `logs -f`, since on at least one CI configuration we're seeing a turnaround as high as 46s, but it's not something we can directly control, so that's not a hard maximum. Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
This commit is contained in:
parent
21f396de6f
commit
3007bd4a99
|
@ -33,7 +33,7 @@ load helpers
|
||||||
exec 5<$fifo
|
exec 5<$fifo
|
||||||
|
|
||||||
# First container emits READY when ready; wait for it.
|
# First container emits READY when ready; wait for it.
|
||||||
read -t 10 -u 5 ready
|
read -t 60 -u 5 ready
|
||||||
is "$ready" "READY" "first log message from container"
|
is "$ready" "READY" "first log message from container"
|
||||||
|
|
||||||
# Helper function: send the given signal, verify that it's received.
|
# Helper function: send the given signal, verify that it's received.
|
||||||
|
@ -42,7 +42,7 @@ load helpers
|
||||||
local signum=${2:-$1} # e.g. if signal=HUP, we expect to see '1'
|
local signum=${2:-$1} # e.g. if signal=HUP, we expect to see '1'
|
||||||
|
|
||||||
run_podman kill -s $signal $cid
|
run_podman kill -s $signal $cid
|
||||||
read -t 10 -u 5 actual || die "Timed out: no ACK for kill -s $signal"
|
read -t 60 -u 5 actual || die "Timed out: no ACK for kill -s $signal"
|
||||||
is "$actual" "got: $signum" "Signal $signal handled by container"
|
is "$actual" "got: $signum" "Signal $signal handled by container"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue