Skip to content

Commit b77a7c5

Browse files
committed
wip
1 parent 85cb812 commit b77a7c5

2 files changed

Lines changed: 10 additions & 1 deletion

File tree

.github/workflows/tests.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,15 @@ jobs:
105105
-v $GITHUB_WORKSPACE/Caddyfile:/etc/frankenphp/Caddyfile \
106106
frankenphp-${{ matrix.php }}
107107
108+
- name: Wait for FrankenPHP to be ready
109+
run: |
110+
for i in $(seq 1 30); do
111+
curl -s -o /dev/null http://localhost:8100 && echo "Server is up" && exit 0
112+
echo "Waiting... ($i/30)"
113+
sleep 2
114+
done
115+
echo "Server did not start in time" && exit 1
116+
108117
- name: Install WordPress
109118
run: |
110119
rm -f /tmp/wp/wp-config.php

tests/Pest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
use Pest\Browser\Api\Webpage;
1717

1818
pest()->extend(TestCase::class)->in('Feature');
19-
pest()->browser()->timeout(180000);
19+
pest()->browser()->timeout(30000);
2020

2121
/*
2222
|--------------------------------------------------------------------------

0 commit comments

Comments
 (0)