Skip to content

Commit

Permalink
make loop ping timeout test more robust
Browse files Browse the repository at this point in the history
  • Loading branch information
kevin-tritz committed May 9, 2024
1 parent b569ce7 commit 89bd1e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_loop.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 89bd1e1

Please sign in to comment.