mirror of
https://github.com/bigchaindb/bigchaindb.git
synced 2024-10-13 13:34:05 +00:00
Problem: No wait when getting value from queue
Solution: Random failure of test `tests/test_events.py::test_event_handler_raises_when_called_after_start` seem to be because of `get_nowait` which returns way to quickly even when the queue has data
This commit is contained in:
parent
4795a78d49
commit
5ecd8fb57c
@ -67,7 +67,7 @@ class Exchange:
|
||||
"""
|
||||
|
||||
try:
|
||||
self.started_queue.get_nowait()
|
||||
self.started_queue.get(timeout=0.01)
|
||||
raise RuntimeError('Cannot create a new subscriber queue while Exchange is running.')
|
||||
except Empty:
|
||||
pass
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user