mirror of
https://github.com/jkingsman/Remote-Terminal-for-MeshCore.git
synced 2026-08-11 03:03:03 +02:00
Backoff MQTT failures all the way up to 1hr on connection failure, and also don't multi-toast on connection error. Closes #231.
This commit is contained in:
+2
-2
@@ -342,8 +342,8 @@ class TestConnectionLoop:
|
||||
assert sleep_args[0] == _BACKOFF_MIN
|
||||
assert sleep_args[1] == _BACKOFF_MIN * 2
|
||||
assert sleep_args[2] == _BACKOFF_MIN * 4
|
||||
# Fourth should be capped at _backoff_max (5*8=40 > 30)
|
||||
assert sleep_args[3] == MqttPublisher._backoff_max
|
||||
# Fourth is still doubling (5*8=40), not yet at _backoff_max
|
||||
assert sleep_args[3] == _BACKOFF_MIN * 8
|
||||
|
||||
@pytest.mark.asyncio
|
||||
async def test_waits_for_settings_when_unconfigured(self):
|
||||
|
||||
Reference in New Issue
Block a user