test: expect True from deferred local TX mock after companion send fix

The merged RepeaterHandler treats a falsy tx_success as failure; update
the duty-cycle deferral test to return True instead of None.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
agessaman
2026-05-30 21:43:00 -07:00
parent 5a9e1c87cc
commit ee92f5b1a9
+1 -1
View File
@@ -1833,7 +1833,7 @@ class TestEngineTransmissionAndBackgroundLifecycle:
with patch.object(handler, "_calculate_tx_delay", return_value=0.5):
loop = asyncio.get_running_loop()
completed = loop.create_future()
completed.set_result(None)
completed.set_result(True)
async def _fake_schedule(packet, delay, airtime_ms, local_transmission=False):
packet._tx_metadata = {