Skip to content

Commit 63030bf

Browse files
committed
fix: disable RUN_REPLICATION_ENABLED and WORKER_ENABLED in test webapp to prevent slot lock blocking test DB writes
1 parent b58176f commit 63030bf

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

  • internal-packages/testcontainers/src

internal-packages/testcontainers/src/webapp.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,11 @@ export async function startWebapp(
6969
ELECTRIC_ORIGIN: "http://localhost:3060",
7070
REDIS_HOST: redis.host,
7171
REDIS_PORT: String(redis.port),
72+
// Disable background workers and logical replication: they are irrelevant for auth
73+
// tests and in CI the replication slot creation holds a snapshot lock that blocks
74+
// the test process's Prisma writes to the same DB.
75+
WORKER_ENABLED: "false",
76+
RUN_REPLICATION_ENABLED: "0",
7277
NODE_PATH: nodePath,
7378
},
7479
stdio: ["ignore", "pipe", "pipe"],

0 commit comments

Comments
 (0)