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.
Shipped
Click a lifecycle step above to view its details.
Sign in to post a ripple.