Skip to content

Commit 9ff5d47

Browse files
committed
probe: wait for mock
1 parent f39662e commit 9ff5d47

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

‎.github/workflows/bughunt-npm.yml‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,8 +158,9 @@ jobs:
158158
cd "$RUNNER_TEMP/probe"
159159
$PY mkpatch.py left-pad 1.3.0 >/dev/null
160160
$PY server.py 8765 > server.out 2>&1 &
161-
sleep 3
162-
for L in ws file; do
161+
for i in $(seq 1 30); do curl -sf -XPOST localhost:8765/v0/orgs/o/patches/batch -d '{"components":[]}' >/dev/null && break; sleep 1; done
162+
echo "server ready after $i tries"
163+
for L in ws file ws; do
163164
echo "===== [${{ matrix.os }} npm ${{ matrix.npm }}] layout=$L"
164165
bash repro.sh "$RUNNER_TEMP/w-$L" npm $L 2>&1 | grep -v "Got: fake"
165166
echo "--- scan.out"; cat "$RUNNER_TEMP/w-$L/scan.out"; echo "--- rb.out"; cat "$RUNNER_TEMP/w-$L/rb.out"

0 commit comments

Comments
 (0)