Skip to content

Keep pagination cap test aligned with maxPages #50

Description

@coderabbitai

Summary

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.

Backlinks:

Requested by: @khvn26

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions