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

Relationships

#4946 Flaky test: DataQueryService.refreshTypes re-reads only the given types fails intermittently when its 0 ms timer never fires during the refresh

Opened by zack · 11/20/2026· Shipped 11/20/2026

src/domain/data/data_query_service_test.ts, test DataQueryService.refreshTypes: re-reads only the given types and keeps the catalog populated. It asserts mostLatest equals 1, where mostLatest is set only by a setTimeout(tick, 0) poller that runs while refreshTypes is awaited. When refreshTypes finishes without yielding to a macrotask, the timer never fires, mostLatest stays 0, and the test fails with actual 0, expected 1. On a clean checkout at df967e324 it failed in two of three local runs of the file. The poller should be guaranteed to run at least once (for example, run tick once synchronously before awaiting, or have the assertion accept zero observations and check the invariant separately) instead of depending on the event loop's timing.

02Bog Flow
✓OPEN✓TRIAGED✓IN PROGRESS✓SHIPPED+ 1 MOREASSIGNED+ 2 MOREREVIEW+ 8 MOREPR_LINKED+ 2 MORESESSION_SUMMARIZED

Shipped

11/20/2026, 4:07:02 PM

Click a lifecycle step above to view its details.

03Sludge Pulse
zack assigned zack11/20/2026, 3:32:03 PM

Sign in to post a ripple.