Skip to content

Commit

Permalink
Simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
erlend-aasland committed Aug 14, 2024
1 parent 1fbe730 commit 6cab70e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions test/test_network.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,9 +249,7 @@ def wait_for_periodicity():
# Check if periodicity is established; flakiness has been observed
# on macOS.
end_time = time.time() + TIMEOUT
while True:
if time.time() >= end_time:
break
while time.time() < end_time:
if msg := bus.recv(PERIOD):
acc.append(msg)
if len(acc) >= 2:
Expand Down

0 comments on commit 6cab70e

Please sign in to comment.