mirror of
https://github.com/bigchaindb/bigchaindb.git
synced 2024-10-13 13:34:05 +00:00
Problem: Random failure for event handler test (#2423)
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. Increasing timeout seems to fix the issue.
This commit is contained in:
parent
66fd001311
commit
54b81d3ae8
@ -67,7 +67,7 @@ class Exchange:
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
try:
|
try:
|
||||||
self.started_queue.get_nowait()
|
self.started_queue.get(timeout=1)
|
||||||
raise RuntimeError('Cannot create a new subscriber queue while Exchange is running.')
|
raise RuntimeError('Cannot create a new subscriber queue while Exchange is running.')
|
||||||
except Empty:
|
except Empty:
|
||||||
pass
|
pass
|
||||||
|
Loading…
x
Reference in New Issue
Block a user