mirror of
https://github.com/dreamhunter2333/cloudflare_temp_email.git
synced 2026-09-05 23:47:50 +08:00
test: initialize rate limit worker database
This commit is contained in:
@@ -110,5 +110,12 @@ if [ -n "${WORKER_GZIP_URL:-}" ]; then
|
|||||||
echo " Gzip worker database initialized"
|
echo " Gzip worker database initialized"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ -n "${WORKER_URL_RATE_LIMIT:-}" ]; then
|
||||||
|
echo "==> Initializing rate-limit worker database"
|
||||||
|
curl -sf -X POST "$WORKER_URL_RATE_LIMIT/admin/db_initialize" > /dev/null
|
||||||
|
curl -sf -X POST "$WORKER_URL_RATE_LIMIT/admin/db_migration" > /dev/null
|
||||||
|
echo " Rate-limit worker database initialized"
|
||||||
|
fi
|
||||||
|
|
||||||
echo "==> Running Playwright tests"
|
echo "==> Running Playwright tests"
|
||||||
exec npx playwright test "$@"
|
exec npx playwright test "$@"
|
||||||
|
|||||||
Reference in New Issue
Block a user