Skip to content

Commit

Permalink
Merge pull request #11027 from edsantiago/bats
Browse files Browse the repository at this point in the history
Networking test: fix silent breakage
  • Loading branch information
openshift-merge-robot authored Jul 23, 2021
2 parents e6fb92f + 8f9d33b commit 2f79497
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/system/500-networking.bats
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion test/system/helpers.bash
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2f79497

Please sign in to comment.