Skip to content

Commit a9fe23a

Browse files
Fixed openshift upgrade test compatibility with linux (#626)
1 parent 50f2fdf commit a9fe23a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

scripts/openshift-upgrade-test.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,15 +63,15 @@ try_until_success() {
6363
local timeout=$2
6464
local interval=${3:-0.2}
6565
local now
66-
now="$(date +%s%3)"
66+
now="$(date +%s)"
6767
local expire=$((now + timeout))
6868
while [ "$now" -lt $expire ]; do
6969
if $cmd ; then
7070
echo "Passed"
7171
return 0
7272
fi
7373
sleep "$interval"
74-
now=$(date +%s%3)
74+
now=$(date +%s)
7575
done
7676
echo "Fail"
7777
return 1
@@ -83,7 +83,7 @@ try_until_text() {
8383
local timeout=$3
8484
local interval=${4:-1}
8585
local now
86-
now="$(date +%s%3)"
86+
now="$(date +%s)"
8787
local expire=$((now + timeout))
8888
while [ "$now" -lt $expire ]; do
8989
echo "Running ${cmd}"
@@ -94,7 +94,7 @@ try_until_text() {
9494
return 0
9595
fi
9696
sleep "$interval"
97-
now=$(date +%s%3)
97+
now=$(date +%s)
9898
done
9999
echo "Fail"
100100
return 1

0 commit comments

Comments
 (0)