summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2021-07-19 16:47:45 -0400
committerGitHub <noreply@github.com>2021-07-19 16:47:45 -0400
commitcea2f38e2160a62db122b8d9982e7ec1b5ac8de0 (patch)
treee35d7f5de2ca001704f198cb9866b2e7aa5cf60e /test
parent4e9ccb30c13fdccb7f7fb3330d05868c52446b1b (diff)
parentc622c7f2a93afd86126e952cf18ed9f1f82852b2 (diff)
downloadpodman-cea2f38e2160a62db122b8d9982e7ec1b5ac8de0.tar.gz
podman-cea2f38e2160a62db122b8d9982e7ec1b5ac8de0.tar.bz2
podman-cea2f38e2160a62db122b8d9982e7ec1b5ac8de0.zip
Merge pull request #10984 from edsantiago/timeout_typo
(minor) typo fix: timeout variable
Diffstat (limited to 'test')
-rwxr-xr-xtest/apiv2/test-apiv24
1 files changed, 2 insertions, 2 deletions
diff --git a/test/apiv2/test-apiv2 b/test/apiv2/test-apiv2
index 9f6bf257f..26619ae03 100755
--- a/test/apiv2/test-apiv2
+++ b/test/apiv2/test-apiv2
@@ -442,10 +442,10 @@ function random_string() {
function wait_for_port() {
local host=$1 # Probably "localhost"
local port=$2 # Numeric port
- local timeout=${3:-5} # Optional; default to 5 seconds
+ local _timeout=${3:-5} # Optional; default to 5 seconds
# Wait
- while [ $timeout -gt 0 ]; do
+ while [ $_timeout -gt 0 ]; do
{ exec 3<> /dev/tcp/$host/$port; } &>/dev/null && return
sleep 1
_timeout=$(( $_timeout - 1 ))