mirror of
https://github.com/bigchaindb/bigchaindb.git
synced 2024-06-10 11:35:16 +02: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 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):
|
||||
|
|
Loading…
Reference in New Issue
Block a user