test(unfold): space editor polls from the last answer, not the last send #228

Closed
ryangr0 wants to merge 1 commit from ryangr0/fix/editor-poll-interval into development AGit
Owner

The checks job on development failed in run 962. api-editor-sign-in.test.ts:52 expected a 403 and got a 429 (slow_down). That blocks the first release after #223, #224 and #226.

The server allows one poll per second, measured when each request arrives. The test spaced its polls 1.05 s apart, measured when it sent them. On a loaded runner the earlier request arrived late, and the gap the server saw dropped below one second.

The test now records the time after the answer arrives. The next poll can then never reach the server within 1.05 s of the previous one. Only the test changes; the server's limit stays as it is.

Verified: the test file passes three times in a row locally, and npm run check passes.

🤖 Generated with Claude Code

The `checks` job on `development` failed in run 962. `api-editor-sign-in.test.ts:52` expected a 403 and got a 429 (`slow_down`). That blocks the first release after #223, #224 and #226. The server allows one poll per second, measured when each request arrives. The test spaced its polls 1.05 s apart, measured when it sent them. On a loaded runner the earlier request arrived late, and the gap the server saw dropped below one second. The test now records the time after the answer arrives. The next poll can then never reach the server within 1.05 s of the previous one. Only the test changes; the server's limit stays as it is. Verified: the test file passes three times in a row locally, and `npm run check` passes. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
test(unfold): space editor polls from the last answer, not the last send
Some checks failed
[Workflow] On Pull Request / checks (pull_request) Has been cancelled
[Workflow] On Pull Request / warnings (pull_request) Has been cancelled
[Workflow] On Pull Request / ploeg-pin (pull_request) Has been cancelled
[Workflow] On Pull Request / release-policy (pull_request) Has been cancelled
8e7d9f3f97
The editor sign-in test timed its next poll from when it sent the previous
one. On a loaded runner the previous request reached the server late, the
next one arrived under the server's one-second minimum, and the server
answered 429 slow_down instead of the asserted 403. This failed the checks
on development (run 962) and blocked the release.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ryangr0 closed this pull request 2026-10-04 17:04:13 +00:00
Some checks failed
[Workflow] On Pull Request / checks (pull_request) Has been cancelled
[Workflow] On Pull Request / warnings (pull_request) Has been cancelled
[Workflow] On Pull Request / ploeg-pin (pull_request) Has been cancelled
[Workflow] On Pull Request / release-policy (pull_request) Has been cancelled

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
webgrip/unfold!228
No description provided.