Skip to content

Commit

Permalink
TST: useful comments
Browse files Browse the repository at this point in the history
  • Loading branch information
dmgav committed Apr 20, 2024
1 parent cd429f6 commit 40b3ee8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/bluesky/tests/test_zmq.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ def start_proxy(start_event):
proxy_proc.start()
proxy_start_event.wait(timeout=5)
assert proxy_start_event.is_set()
# The event only monitors that the process is started.
# Extra delay is needed to ensure that the proxy is started.
time.sleep(0.2)

return proxy_proc
Expand Down Expand Up @@ -58,6 +60,8 @@ def put_in_queue(name, doc):
dispatcher_proc.start()
dispatcher_start_event.wait(timeout=5)
assert dispatcher_start_event.is_set()
# The event is set before dispatcher is started. It indicates that the process
# is running. Extra delay is needed to ensure that the dispatcher is started.
time.sleep(0.2)

return dispatcher_proc, queue
Expand Down

0 comments on commit 40b3ee8

Please sign in to comment.