Skip to content

Commit 89bd1e1

Browse files
committed
make loop ping timeout test more robust
1 parent b569ce7 commit 89bd1e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_loop.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ def test_loop_ping_timeout(self):
220220
mqtt_client._sock = mocket
221221

222222
start = time.monotonic()
223-
res = mqtt_client.loop(timeout=2 * keep_alive_timeout)
223+
res = mqtt_client.loop(timeout=2 * keep_alive_timeout + recv_timeout)
224224
assert time.monotonic() - start >= 2 * keep_alive_timeout
225225
assert len(mocket.sent) > 0
226226
# assert len(res) == 2

0 commit comments

Comments
 (0)