File tree Expand file tree Collapse file tree 1 file changed +16
-3
lines changed
Expand file tree Collapse file tree 1 file changed +16
-3
lines changed Original file line number Diff line number Diff line change @@ -172,9 +172,22 @@ jobs:
172172 APPIUM_PID=$!
173173 echo "APPIUM_PID=$APPIUM_PID" >> $GITHUB_ENV
174174
175- # Wait for Appium to be ready
176- timeout 30 bash -c 'until curl -s http://localhost:4723/status >/dev/null; do echo "Waiting for Appium..."; sleep 2; done'
177- echo "Appium server is ready!"
175+ # Wait for Appium to be ready (macOS doesn't have timeout command)
176+ echo "Waiting for Appium to start..."
177+ for i in {1..30}; do
178+ if curl -s http://localhost:4723/status >/dev/null 2>&1; then
179+ echo "Appium server is ready!"
180+ break
181+ fi
182+ echo "Waiting for Appium... ($i/30)"
183+ sleep 2
184+ done
185+
186+ # Final check
187+ if ! curl -s http://localhost:4723/status >/dev/null 2>&1; then
188+ echo "Appium failed to start after 60 seconds"
189+ exit 1
190+ fi
178191
179192 - name : Run E2E Tests (${{ matrix.shard.name }})
180193 run : |
You can’t perform that action at this time.
0 commit comments