1
0
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:
vrde 2016-04-15 12:34:27 +02:00
parent 3f69f208a1
commit 99ac8f99e0
No known key found for this signature in database
GPG Key ID: 6581C7C39B3D397D

View File

@ -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):