mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-05-05 14:47:12 -04:00
Fixed waiting.
This commit is contained in:
parent
6985c216d2
commit
78ae34ea15
1 changed files with 10 additions and 2 deletions
12
.github/workflows/frontend-admin-tests.yml
vendored
12
.github/workflows/frontend-admin-tests.yml
vendored
|
@ -123,8 +123,16 @@ jobs:
|
|||
shell: bash
|
||||
run: |
|
||||
pnpm run dev &
|
||||
log "Waiting for Etherpad to accept connections (http://localhost:9001)..."
|
||||
sleep 20
|
||||
connected=false
|
||||
can_connect() {
|
||||
curl -sSfo /dev/null http://localhost:9001/ || return 1
|
||||
connected=true
|
||||
}
|
||||
now() { date +%s; }
|
||||
start=$(now)
|
||||
while [ $(($(now) - $start)) -le 15 ] && ! can_connect; do
|
||||
sleep 1
|
||||
done
|
||||
cd src
|
||||
pnpm exec playwright install
|
||||
pnpm run test-admin
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue