Skip to content

Commit 830af78

Browse files
committed
remove test_loop dependence on mqtt.get_monotonic_time function
1 parent 128e3f0 commit 830af78

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/test_loop.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,8 @@ def test_loop_basic(self) -> None:
142142
time_before = time.monotonic()
143143
timeout = random.randint(3, 8)
144144
# pylint: disable=protected-access
145-
mqtt_client._last_msg_sent_timestamp = mqtt_client.get_monotonic_time()
145+
# mqtt_client._last_msg_sent_timestamp = mqtt_client.get_monotonic_time()
146+
mqtt_client._last_msg_sent_timestamp = time.monotonic()
146147
rcs = mqtt_client.loop(timeout=timeout)
147148
time_after = time.monotonic()
148149

0 commit comments

Comments
 (0)