diff --git a/tests/test_loop.py b/tests/test_loop.py index 1ca6591..ea3df5f 100644 --- a/tests/test_loop.py +++ b/tests/test_loop.py @@ -220,7 +220,7 @@ def test_loop_ping_timeout(self): mqtt_client._sock = mocket start = time.monotonic() - res = mqtt_client.loop(timeout=2 * keep_alive_timeout) + res = mqtt_client.loop(timeout=2 * keep_alive_timeout + recv_timeout) assert time.monotonic() - start >= 2 * keep_alive_timeout assert len(mocket.sent) > 0 # assert len(res) == 2