test_messaging: less flaky wait time check

pull/34884/merge
Maxime Desroches 4 days ago
parent cccd60a28b
commit a1f073921c
  1. 2
      cereal/messaging/tests/test_messaging.py

@ -177,8 +177,8 @@ class TestMessaging:
# wait 5 socket timeouts before sending
msg = random_carstate()
delayed_send(sock_timeout*5, pub_sock, msg.to_bytes())
start_time = time.monotonic()
delayed_send(sock_timeout*5, pub_sock, msg.to_bytes())
recvd = messaging.recv_one_retry(sub_sock)
assert (time.monotonic() - start_time) >= sock_timeout*5
assert isinstance(recvd, capnp._DynamicStructReader)

Loading…
Cancel
Save