Skip to content

Commit d058694

Browse files
committed
WIP
1 parent 9d26b35 commit d058694

File tree

1 file changed

+16
-3
lines changed

1 file changed

+16
-3
lines changed

.github/workflows/e2e-tests-hybrid.yml

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff 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: |

0 commit comments

Comments
 (0)