Skip to content

Fix feed latency TypeError and flaky integration test#17

Merged
arshka merged 1 commit into
mainfrom
fix-feed-latency-and-flaky-test
Apr 9, 2026
Merged

Fix feed latency TypeError and flaky integration test#17
arshka merged 1 commit into
mainfrom
fix-feed-latency-and-flaky-test

Conversation

@arshka
Copy link
Copy Markdown
Owner

@arshka arshka commented Apr 9, 2026

Summary

  • Fix TypeError in Feed.latency_ms / AsyncFeed.latency_ms — the API sends ts as a string but the code did float - str. Cast to int on store.
  • Remove flaky assertion in test_get_markets_with_status_filter that assumed status=open only returns active markets (API can return closed).
  • Bump to 1.0.4

Test plan

  • All 296 unit tests pass
  • test_latency_calculated_from_timestamps still passes

- Cast WebSocket ts to int before arithmetic in Feed and AsyncFeed
  (API sends ts as string, causing TypeError in latency_ms)
- Remove overly strict assertion in integration test that assumed
  status=open only returns active markets
- Bump version to 1.0.4
@arshka arshka merged commit 9739a60 into main Apr 9, 2026
@arshka arshka deleted the fix-feed-latency-and-flaky-test branch April 9, 2026 03:36
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