Commit 3bee9ab
test(run-ops split): pin splitEnabled in the cross-boundary waitpoint-token test
The "control-plane-resident standalone token is found when the run-ops
replica does not hold it" case relied on the ambient RUN_OPS_SPLIT_ENABLED
env being on. Locally .env sets it (plus distinct TASK_RUN_* URLs) so the
resolver fans out new->legacy and finds the cuid-shaped token. In CI those
vars are unset, so resolveWaitpointThroughReadThrough falls back to
isSplitEnabled() -> false -> single-DB passthrough, which reads only the
run-ops replica (prisma17), never the control-plane legacy replica (prisma14)
that holds the token. The read returned null and the assertion
"expected null not to be null" failed on CI shard 3.
Inject deps.splitEnabled: true (mirroring the sibling read-gate test) so the
fan-out is exercised deterministically regardless of ambient env. Test-only;
preserves exactly what the case verifies (legacy fallback finds a
control-plane token the new replica lacks).
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent fa76c1b commit 3bee9ab
1 file changed
Lines changed: 5 additions & 0 deletions
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
74 | 79 | | |
75 | 80 | | |
76 | 81 | | |
| |||
0 commit comments