mirror of
https://github.com/bigchaindb/bigchaindb.git
synced 2024-10-13 13:34:05 +00:00
Add new check for queue size
This commit is contained in:
parent
3f69f208a1
commit
99ac8f99e0
@ -54,6 +54,10 @@ def test_empty_pool_is_populated_with_instances(mock_queue):
|
|||||||
assert instance == 'hello'
|
assert instance == 'hello'
|
||||||
assert len(mock_queue.items) == 4
|
assert len(mock_queue.items) == 4
|
||||||
|
|
||||||
|
with pool() as instance:
|
||||||
|
assert instance == 'hello'
|
||||||
|
assert len(mock_queue.items) == 4
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
def test_pool_blocks_if_no_instances_available(mock_queue):
|
def test_pool_blocks_if_no_instances_available(mock_queue):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user