Files
StarPilot/openpilot/starpilot/flm/tests/_drain_fixture.py
T
Dom 487dfc4bf4 FLM: preserve fresh evidence across paired queue drains
Merge bounded control/output FIFO heads using original publisher headers. Preserve original age, native, source, overflow and malformed-input checks; retain producer order after joins.

Validated with actual pinned cloud dependencies and fresh-head regression tests.
2026-10-27 17:01:24 -05:00

13 lines
519 B
Python

"""Adapt declared callback schedules in daemon units, not production transport.
These tests deliberately drive callback time/source/native boundaries directly.
The actual FIFO merge and bounded wire receiver have their own transport tests.
"""
def separate_drain_fixture(single):
def paired(control_socket, control, applied_socket, applied, receive, collector, now_ns):
single(control_socket, control, receive, collector, now_ns)
single(applied_socket, applied, receive, collector, now_ns)
return paired