Skip to content

Commit 2a48cd0

Browse files
authored
test(supabase): Stop supabase before initializing (#20563)
closes #20214 The test failed with: ``` failed to start docker container: Error response from daemon: failed to set up container networking: driver failed programming external connectivity on endpoint supabase_db_test-application (a2890079e9476a7ded9e9fbba9a9a60e82b00e74ea23f746beef34d99cbfb830): failed to bind host port for 0.0.0.0:54322:172.18.0.2:5432/tcp: address already in use ``` So for some reason the runner was reusing something from before, where the container ran. With that we stop Docker via the `supabase` CLI and then init it.
1 parent 7b6325a commit 2a48cd0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • dev-packages/e2e-tests/test-applications/supabase-nextjs

dev-packages/e2e-tests/test-applications/supabase-nextjs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"build": "next build",
88
"start": "next start",
99
"clean": "npx rimraf node_modules pnpm-lock.yaml .next",
10-
"start-local-supabase": "supabase init --force --workdir . && supabase start -o env && supabase db reset",
10+
"start-local-supabase": "supabase stop --no-backup 2>/dev/null || true && supabase init --force --workdir . && supabase start -o env && supabase db reset",
1111
"test:prod": "TEST_ENV=production playwright test",
1212
"test:build": "pnpm install && pnpm start-local-supabase && pnpm build",
1313
"test:assert": "pnpm test:prod"

0 commit comments

Comments
 (0)