piker/tests/providers
Gud Boi 762c59d7c7 Fix IB idle timer arithmetic for packet nanoseconds
Override `NonShittyWrapper._setTimer()` to compute packet silence
in seconds from integer epoch nanoseconds, avoiding upstream's
`datetime` subtraction error after `tcpDataArrived()`. Delegate
pre-traffic datetime and sentinel handling upstream.

Preserve the packet timestamp on expiry and clear the timer before
`timeoutEvent` emission so listeners can safely rearm it. Add three
offline regressions under `tests/providers/` for rescheduling, single
expiry, datetime and sentinel states, disabling, and reentrant
listener rearming. Document the wrapper overrides on the class.

This fixes an explicitly armed packet-idle timer; heartbeat, default
arming, and reconnect behavior are outside this change.

Prompt-IO: ai/prompt-io/opencode/20260924_ib_idle_timer.md

(this patch was generated in some part by `opencode` using
`gpt-6-astra` (`openai`))
2026-11-03 09:43:39 -05:00
..
__init__.py Fix IB idle timer arithmetic for packet nanoseconds 2026-11-03 09:43:39 -05:00
test_history_reservations.py Use IB schedules to reserve missing SHM history 2026-09-24 19:09:22 -04:00
test_ib_schedule.py Retry incomplete IB schedule coverage 2026-09-24 20:20:20 -04:00
test_ib_wrapper_timeout.py Fix IB idle timer arithmetic for packet nanoseconds 2026-11-03 09:43:39 -05:00