Skip to main content
← Back to list
01Issue
BugShippedSwamp CLIPublic
Assigneesstack72hammz

Relationships

#2698 Flaky test: CollectiveRefreshService fallback getAccessToken test counts calls after a fixed 200ms sleep

Opened by hammz · 9/29/2026· Shipped 9/29/2026

src/serve/collective_refresh_service_test.ts:272 (works with fallback getAccessToken) starts the service, sleeps a fixed 200ms with setTimeout, disposes, then asserts accessTokenCalls equals 1. Under the full parallel test run in verify-build it observed 2 (run 896b24e4-8d6d-4e9d-a1e4-d13c0da561d4, commit f591d840, branch issue-2493, which does not touch src/serve). It passes 5 of 5 in isolation. AGENTS.md says never wait with a fixed sleep for async work and to poll with waitFor from swamp-testing; the test should wait for the first refresh to complete (or assert at least one call and the updated collectives) rather than depending on how many refresh cycles fit in 200ms.

02Bog Flow
✓OPEN✓TRIAGED✓IN PROGRESS✓SHIPPED+ 3 MOREASSIGNED+ 8 MOREREVIEW+ 7 MOREPR_MERGED+ 2 MORESESSION_SUMMARIZED

Shipped

9/29/2026, 4:39:55 PM

Click a lifecycle step above to view its details.

03Sludge Pulse
stack72 assigned stack729/29/2026, 4:06:13 PM
hammz assigned hammz9/29/2026, 4:14:39 PM

Sign in to post a ripple.