Stop Alice's publication threadpool at the end of fixtures; otherwise tests hang.

pull/2140/head
jMyles 2020-05-22 12:54:29 -07:00
parent 9374947d61
commit 09e03d156e
1 changed files with 6 additions and 4 deletions

View File

@ -343,14 +343,16 @@ def random_policy_label():
@pytest.fixture(scope="module")
def federated_alice(alice_federated_test_config):
_alice = alice_federated_test_config.produce()
return _alice
alice = alice_federated_test_config.produce()
yield alice
alice.publication_threadpool.stop()
@pytest.fixture(scope="module")
def blockchain_alice(alice_blockchain_test_config, testerchain):
_alice = alice_blockchain_test_config.produce()
return _alice
alice = alice_blockchain_test_config.produce()
yield alice
alice.publication_threadpool.stop()
@pytest.fixture(scope="module")