Skip to content

Commit

Permalink
Add timeout util for mac
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrei Medvedev committed Dec 15, 2023
1 parent ff23305 commit 900dc2a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,11 @@ jobs:
- name: Setup node
run: java -jar selenium-server.jar node -I "safari" > selenium-node.log 2>&1 &

- name: Install timeout util
run: brew install coreutils

- name: Run tests for macos
run: |
timeout 60 bash -c 'while ! wget -O /dev/null -T 1 http://localhost:4444/readyz; do echo waiting for selenium server; sleep 1; done' || (cat selenium-hub.log selenium-node.log && exit 2)
gtimeout 60 bash -c 'while ! wget -O /dev/null -T 1 http://localhost:4444/readyz; do echo waiting for selenium server; sleep 1; done' || (cat selenium-hub.log selenium-node.log && exit 2)
tox -e tests_macos_selenium -- -m macos -n 1 tests/test_webdriver_remote.py;

0 comments on commit 900dc2a

Please sign in to comment.