From fff3daacf765d00fd321d356dc5c451a6e4c83de Mon Sep 17 00:00:00 2001 From: Andreas Motl Date: Thu, 27 Apr 2023 14:51:46 +0200 Subject: [PATCH] [ntfy] [Frigate] Fix timing for software tests --- examples/frigate/test_frigate.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/frigate/test_frigate.py b/examples/frigate/test_frigate.py index 8b136371..81dd7feb 100644 --- a/examples/frigate/test_frigate.py +++ b/examples/frigate/test_frigate.py @@ -68,7 +68,7 @@ def test_frigate_with_attachment(mosquitto, ntfy_service, caplog, capmqtt): capmqtt.publish(topic="frigate/cam-testdrive/goat/snapshot", payload=payload_image) # Make mqttwarn receive and process the message. - mqtt_process(mqttc, loops=4) + mqtt_process(mqttc, loops=6) # Verify log output. assert 'Successfully loaded service "ntfy"' in caplog.messages @@ -137,7 +137,7 @@ def test_frigate_with_notification(mosquitto, ntfy_service, caplog, capmqtt, jso capmqtt.publish(topic="frigate/events", payload=payload_event) # Make mqttwarn receive and process the message. - mqtt_process(mqttc, loops=2) + mqtt_process(mqttc, loops=3) # Verify log output. assert "MQTT message received: MqttMessage(topic='frigate/events'" in caplog.text