You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Keep pagination cap test aligned with maxPages #50
Keep the pagination loop-cap test aligned with the production pagination limit.
Required change
In internal/api/client_test.go, update the TestProjects pagination-loop subtest so wantPages references the production maxPages constant rather than duplicating the numeric literal (1000).
Rationale
The test should remain coupled to the actual pagination cap. If maxPages changes while the test keeps a hard-coded value, the assertion can become a hang-vs-fail race rather than reliably validating the limit.
Affected area
internal/api/client_test.go
Pagination loop protection in internal/api/client.go
Acceptance criteria
The test declares wantPages from maxPages.
The existing test continues to verify that pagination stops at the configured cap.
Activity
khvn26 commentedon Jul 28, 2026
Actually, literals in tests are fine by me.