Skip to content

Commit 966316a

Browse files
authored
Cypress Github Action timeout not failing fix
1 parent e798dbb commit 966316a

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

test_cypress.sh

+5-2
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,10 @@ done
2525
pushd oioioi_cypress
2626
# Resolve dependencies
2727
yarn
28-
# Wait for a server. If not ready after 10s end program else run tests.
29-
npx wait-on http://localhost:8000 --timeout 30000 &&\
28+
29+
# Wait for a server
30+
../wait-for-it.sh -t 30 "localhost:8000"
31+
32+
# Run tests
3033
CYPRESS_baseUrl=http://localhost:8000 yarn cy:${gui}
3134
popd

0 commit comments

Comments
 (0)