Skip to content

Commit 78b3d96

Browse files
waleedlatif1claude
andcommitted
test(buffer): pin exact ZREMRANGEBYRANK stop arg
Pinning -5_001 (= -(DEFAULT_EVENT_LIMIT) - 1) so the off-by-one boundary is directly validated; expect.any(Number) would have passed a wrong formula like -eventLimit. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
1 parent 26ffeb9 commit 78b3d96

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

apps/sim/lib/copilot/request/session/buffer.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ describe('mothership-stream-outbox', () => {
166166
expect(mockRedis.zremrangebyrank).toHaveBeenCalledWith(
167167
'mothership_stream:stream-1:events',
168168
0,
169-
expect.any(Number)
169+
-5_001
170170
)
171171
})
172172

0 commit comments

Comments
 (0)