From a6579726684664a50afca06b0b394c8990599b75 Mon Sep 17 00:00:00 2001 From: better0fdead Date: Thu, 27 Apr 2023 15:01:36 +0300 Subject: [PATCH] Increase timeout for docker start Increased timeout for docker start from 180s to 600s. Have done it because sometimes 180s is not enough for github macOS runners. --- lib/setup-docker.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/setup-docker.js b/lib/setup-docker.js index 74aa133..772f3b1 100644 --- a/lib/setup-docker.js +++ b/lib/setup-docker.js @@ -177,8 +177,8 @@ while ! /Applications/Docker.app/Contents/Resources/bin/docker system info &>/de (( i++ == 0 )) && printf %s '-- Waiting for Docker to finish starting up...' || printf '.' command -v docker || echo 'test docker command loop: not found' sleep 1 -# wait 180s(3min) -if [ $i -gt 180 ];then exit 1;sudo /Applications/Docker.app/Contents/MacOS/com.docker.diagnose check;uname -a;system_profiler SPHardwareDataType;echo "::error::-- Wait docker start $i s too long, exit"; exit 1; fi +# wait 600s(10min) +if [ $i -gt 600 ];then exit 1;sudo /Applications/Docker.app/Contents/MacOS/com.docker.diagnose check;uname -a;system_profiler SPHardwareDataType;echo "::error::-- Wait docker start $i s too long, exit"; exit 1; fi done echo "::notice::-- Docker is ready.Wait time is $i s" uname -a || true