Skip to content

Commit 5168537

Browse files
Merge branch 'master' into perf/keyset-nudge-domain-scans
2 parents 5ed60d1 + 65455df commit 5168537

6 files changed

Lines changed: 741 additions & 340 deletions

File tree

internal/jobs/export_quota_test.go

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
package jobs
2+
3+
// export_quota_test.go — test-only exports for quota.go internals so the
4+
// external (jobs_test) test package can assert against the keyset-pagination
5+
// batch limit without re-declaring the magic number (CLAUDE.md: "Use named
6+
// constants, not inline strings"). Only visible to _test.go files because the
7+
// file ends in _test.go.
8+
9+
// QuotaScanBatchLimit exports quotaScanBatchLimit — the keyset page size the
10+
// suspend / unsuspend / redis-eviction loops use. External tests reference
11+
// this in their sqlmock WithArgs(cursor, status, limit) expectations so the
12+
// limit lives in exactly one place.
13+
const QuotaScanBatchLimit = quotaScanBatchLimit

0 commit comments

Comments
 (0)