Skip to content

Commit a93c6e1

Browse files
committed
test(webapp): inject a container newPrimary in the not-found waitpoint-resolve case
The run-ops-primary fallback would otherwise reach the production db.server singleton, which is not connectable in the webapp unit-test env, throwing where the test expects a graceful null.
1 parent 3cfa9b3 commit a93c6e1

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

apps/webapp/test/resolveWaitpointThroughReadThrough.readthrough.test.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,9 @@ describe("resolveWaitpointThroughReadThrough (hetero PG14 legacy + dedicated run
247247
splitEnabled: true,
248248
newClient: recording(prisma17).handle,
249249
legacyReplica: recording(prisma14).handle,
250+
// The run-ops-primary fallback also misses this never-seeded token; inject a container client
251+
// so it does not reach for the unconnectable production singleton.
252+
newPrimary: recording(prisma17).handle,
250253
},
251254
});
252255

0 commit comments

Comments
 (0)