mirror of
https://github.com/containers/podman.git
synced 2025-06-22 01:48:54 +08:00
Merge pull request #11027 from edsantiago/bats
Networking test: fix silent breakage
This commit is contained in:
@ -139,7 +139,7 @@ load helpers
|
||||
$IMAGE nc -l -n -v -p $myport
|
||||
cid="$output"
|
||||
|
||||
wait_for_port 127.0.0.1 $myport
|
||||
wait_for_output "listening on .*:$myport .*" $cid
|
||||
|
||||
# emit random string, and check it
|
||||
teststring=$(random_string 30)
|
||||
|
@ -288,7 +288,7 @@ function wait_for_port() {
|
||||
|
||||
# Wait
|
||||
while [ $_timeout -gt 0 ]; do
|
||||
{ exec 3<> /dev/tcp/$host/$port; } &>/dev/null && return
|
||||
{ exec 5<> /dev/tcp/$host/$port; } &>/dev/null && return
|
||||
sleep 1
|
||||
_timeout=$(( $_timeout - 1 ))
|
||||
done
|
||||
|
Reference in New Issue
Block a user