Advertisement
giuseppe1977

Untitled

Feb 10th, 2025
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.41 KB | None | 0 0
  1. --- a/tests/messaging/test_mqtt.py
  2. +++ b/tests/messaging/test_mqtt.py
  3. @@ -3,6 +3,7 @@
  4.  #
  5.  # SPDX-License-Identifier: AGPL-3.0-or-later
  6.  
  7. +import time
  8.  from datetime import datetime
  9.  from uuid import UUID
  10.  
  11. @@ -93,6 +94,8 @@ class MQTTDaemonTestCase(TestCase):
  12.  
  13.          daemon.run()
  14.  
  15. +        time.sleep(3)
  16. +
  17.          client.connect.assert_called_with()
  18.  
  19.          client.loop_start.assert_called_with()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement