mirror of
https://github.com/pyMC-dev/pyMC_Repeater.git
synced 2026-08-07 17:33:16 +02:00
refactor(airtime): introduce refresh_radio_params method for dynamic modulation updates
Added a new method to the AirtimeManager class to refresh modulation parameters without clearing transmission history. Updated ConfigManager to call this method after applying live radio configurations. Enhanced tests to verify that modulation updates occur correctly during live updates.
This commit is contained in:
@@ -2774,7 +2774,9 @@ class TestEngineTransmissionAndBackgroundLifecycle:
|
||||
handler._record_crc_errors_async.assert_awaited_once()
|
||||
handler._send_periodic_advert_async.assert_awaited_once()
|
||||
handler.cleanup_cache.assert_called_once()
|
||||
handler.storage.cleanup_old_data.assert_called_once()
|
||||
handler.storage.cleanup_old_data.assert_called_once_with(
|
||||
days=31, companion_events_days=31
|
||||
)
|
||||
|
||||
@pytest.mark.asyncio
|
||||
async def test_background_timer_loop_continues_when_db_cleanup_fails(self, handler):
|
||||
|
||||
Reference in New Issue
Block a user