Skip to content

fix(test): bump agent-interface token refresh timeout to 30s#777

Merged
kelsonpw merged 1 commit into
mainfrom
fix/agent-interface-token-refresh-timeout
May 14, 2026
Merged

fix(test): bump agent-interface token refresh timeout to 30s#777
kelsonpw merged 1 commit into
mainfrom
fix/agent-interface-token-refresh-timeout

Conversation

@kelsonpw
Copy link
Copy Markdown
Member

@kelsonpw kelsonpw commented May 14, 2026

Summary

The "refreshes the MCP Authorization header when the token rotates
between attempts" test in src/lib/__tests__/agent-interface.test.ts
simulates a 60s cold-start stall plus jittered backoff (2-30s)
inside fake timers — up to ~90s of virtual time per attempt. The
test logic is correct, but the per-test 15s real-time timeout left
no headroom for the scheduler under CI load on Node 20, producing
intermittent "Test timed out in 15000ms" failures across multiple
recent PRs (#765, #766, #767, #768, #769, #771).

Fix

Double the timeout from 15s to 30s. No logic change.

Test plan

  • Full agent-interface.test.ts suite (298 tests) passes locally
  • No production-code change

🤖 Generated with Claude Code


Note

Low Risk
Low risk: test-only change that increases the timeout to reduce CI flakiness, with no production logic impact.

Overview
Extends the Vitest timeout for the runAgent token-rotation test in src/lib/__tests__/agent-interface.test.ts from 15s to 30s to prevent intermittent CI timeouts under slow runners, without changing test behavior or production code.

Reviewed by Cursor Bugbot for commit f2794b0. Bugbot is set up for automated code reviews on this repo. Configure here.

…o 30s

The "refreshes the MCP Authorization header when the token rotates
between attempts" test simulates a 60s cold-start stall plus jittered
backoff (2-30s) inside fake timers — up to ~90s of virtual time per
attempt. The test logic is correct, but the per-test 15s real-time
timeout left no headroom for the scheduler under CI load on Node 20,
producing intermittent "Test timed out in 15000ms" failures across
multiple PRs (#765, #766, #767, #768, #769, #771).

Double the timeout to 30s. No logic change.
@kelsonpw kelsonpw requested a review from a team as a code owner May 14, 2026 18:07
@kelsonpw kelsonpw merged commit ba7fd3e into main May 14, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant