We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0c48574 commit d82465dCopy full SHA for d82465d
tests/test_loop.py
@@ -223,6 +223,7 @@ def test_loop_ping_vs_msgs_sent(self):
223
# patch is_connected() to avoid CONNECT/CONNACK handling.
224
mqtt_client.is_connected = lambda: True
225
226
+ # With QoS=0 no PUBACK message is sent, so Nulltet can be used.
227
mocket = Nulltet()
228
# pylint: disable=protected-access
229
mqtt_client._sock = mocket
@@ -231,7 +232,7 @@ def test_loop_ping_vs_msgs_sent(self):
231
232
topic = "foo"
233
message = "bar"
234
for _ in range(3 * keep_alive_timeout):
- mqtt_client.publish(topic, message)
235
+ mqtt_client.publish(topic, message, qos=0)
236
mqtt_client.loop(1)
237
i += 1
238
0 commit comments