Skip to content

Commit

Permalink
[TASK] Try to fix pipeline (again)
Browse files Browse the repository at this point in the history
  • Loading branch information
s2b committed Jun 15, 2024
1 parent d0eca15 commit 1d86713
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/test.bats
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,12 @@ install_vite() {
start_dev_server() {
# Start dev server in the background to be able to continue test
ddev vite &
sleep 1

# Wait maximum 5s until vite is ready for requests
for _ in `seq 1 10`; do
echo -n .
EXIT_CODE=0
ddev exec nc -z localhost 5173 || EXIT_CODE=$?
if [ "$EXIT_CODE" -eq "0" ]; then
if ddev exec nc -z localhost 5173; then
return
fi
sleep 0.5
Expand Down

0 comments on commit 1d86713

Please sign in to comment.