Skip to content

Commit 9c10e14

Browse files
committed
test(run-store): assert exact connectedRuns cap in bound test
1 parent bb008c9 commit 9c10e14

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

internal-packages/run-store/src/PostgresRunStore.connectedRunsIncludeBounded.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,8 @@ describe("PostgresRunStore.findWaitpoint — connectedRuns relation is bounded",
118118
expect(waitpoint).not.toBeNull();
119119
const connectedRuns = waitpoint!.connectedRuns;
120120

121-
// Bounded.
122-
expect(connectedRuns.length).toBeLessThanOrEqual(CONNECTED_RUNS_LIMIT);
121+
// Bounded to exactly the cap (fixture connects more real runs than the limit).
122+
expect(connectedRuns).toHaveLength(CONNECTED_RUNS_LIMIT);
123123
// Never a dangling id — every returned run must be a REAL run.
124124
for (const run of connectedRuns) {
125125
expect(realRunIds).toContain(run.id);

0 commit comments

Comments
 (0)