Fix a flaky timeseries test#2076
Conversation
Greptile SummaryThis PR fixes a flaky test in
Confidence Score: 5/5Safe to merge — the change removes a racy sleep-based polling pattern and replaces it with a deterministic async await, touching only a single test file. The change is minimal and well-scoped: one test converted from synchronous sleep-polling to async/await. The project already has asyncio_mode = auto configured, reactivex.Observable has a documented await that returns the last emitted value, and ops.to_list() produces exactly one emission (the complete list), so the assertion is now fully deterministic. No production code is touched. No files require special attention. Important Files Changed
Reviews (1): Last reviewed commit: "Fix a flaky timeseries test" | Re-trigger Greptile |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
Problem
This test was timing dependent and appeared in a flaky CI failure.
Solution
Remove the timing dependence, which also makes the test itself faster.