summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEd Santiago <santiago@redhat.com>2021-07-19 13:23:12 -0600
committerEd Santiago <santiago@redhat.com>2021-07-19 13:24:25 -0600
commitc622c7f2a93afd86126e952cf18ed9f1f82852b2 (patch)
tree4fc7fdd2619d2112ff78f0778198be998275fe5e
parent20c9f74c77683730455df4fb5e7722a192b78a92 (diff)
downloadpodman-c622c7f2a93afd86126e952cf18ed9f1f82852b2.tar.gz
podman-c622c7f2a93afd86126e952cf18ed9f1f82852b2.tar.bz2
podman-c622c7f2a93afd86126e952cf18ed9f1f82852b2.zip
(minor) typo fix: timeout variable
timeout variable was inconsistently spelled in helper function Signed-off-by: Ed Santiago <santiago@redhat.com>
-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 ))