Skip to content

Commit 077917b

Browse files
d-csclaude
andcommitted
test(run-ops split): add runOpsSplitReadEnabled to the callback route test's db.server mock
The callback route now resolves the waitpoint via resolveWaitpointThroughReadThrough, whose module reads runOpsSplitReadEnabled off ~/db.server at import. The test's vi.mock omitted that export, so the mocked module threw at import and the whole suite failed to collect. Provide it (split-on) to match the read path the route exercises; ksuid (NEW) waitpoint ids route to the runOpsNewReplica proxy pointing at the seeded container. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 2d909d3 commit 077917b

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

apps/webapp/test/waitpointCallback.controlPlane.test.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ vi.mock("~/db.server", async () => {
3737
runOpsNewPrisma: lazyProxy(replicaHolder, "replicaHolder.client"),
3838
runOpsNewReplica: lazyProxy(replicaHolder, "replicaHolder.client"),
3939
runOpsLegacyReplica: lazyProxy(replicaHolder, "replicaHolder.client"),
40+
// The route's read-through helper reads this off `~/db.server`; split-on routes ksuid (NEW)
41+
// ids to the `runOpsNewReplica` proxy, which points at the seeded container.
42+
runOpsSplitReadEnabled: true,
4043
sqlDatabaseSchema: Prisma.sql([`public`]),
4144
};
4245
});

0 commit comments

Comments
 (0)