File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments