Skip to content

Commit

Permalink
[TASK] Debug tests
Browse files Browse the repository at this point in the history
  • Loading branch information
s2b committed Jun 23, 2024
1 parent 8de122f commit b8fcd41
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions tests/test.bats
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,16 @@ install_vite() {
start_dev_server() {
# Start dev server in the background to be able to continue test
screen -d -m ddev vite
sleep 1

# Wait maximum 5s until vite is ready for requests
for _ in `seq 1 10`; do
echo -n .
if ddev exec nc -z localhost 5173; then
return
fi
sleep 0.25
done
# Wait maximum 3s until vite is ready for requests
# for _ in `seq 1 12`; do
# echo -n .
# if ddev exec nc -z localhost 5173; then
# return
# fi
# sleep 0.25
# done
}

error_checks() {
Expand Down

0 comments on commit b8fcd41

Please sign in to comment.