Skip to content

Commit

Permalink
on QoS
Browse files Browse the repository at this point in the history
  • Loading branch information
vladak committed Jan 24, 2024
1 parent 0c48574 commit d82465d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/test_loop.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,7 @@ def test_loop_ping_vs_msgs_sent(self):
# patch is_connected() to avoid CONNECT/CONNACK handling.
mqtt_client.is_connected = lambda: True

# With QoS=0 no PUBACK message is sent, so Nulltet can be used.
mocket = Nulltet()
# pylint: disable=protected-access
mqtt_client._sock = mocket
Expand All @@ -231,7 +232,7 @@ def test_loop_ping_vs_msgs_sent(self):
topic = "foo"
message = "bar"
for _ in range(3 * keep_alive_timeout):
mqtt_client.publish(topic, message)
mqtt_client.publish(topic, message, qos=0)
mqtt_client.loop(1)
i += 1

Expand Down

0 comments on commit d82465d

Please sign in to comment.