Skip to content

Commit

Permalink
[ntfy] [Frigate] Fix timing for software tests
Browse files Browse the repository at this point in the history
  • Loading branch information
amotl committed Apr 27, 2023
1 parent 7922000 commit fff3daa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/frigate/test_frigate.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit fff3daa

Please sign in to comment.