mirror of https://github.com/nucypher/nucypher.git
Stop Alice's publication threadpool at the end of fixtures; otherwise tests hang.
parent
94bf759aa6
commit
18993022ea
|
@ -340,14 +340,16 @@ def random_policy_label():
|
||||||
|
|
||||||
@pytest.fixture(scope="module")
|
@pytest.fixture(scope="module")
|
||||||
def federated_alice(alice_federated_test_config):
|
def federated_alice(alice_federated_test_config):
|
||||||
_alice = alice_federated_test_config.produce()
|
alice = alice_federated_test_config.produce()
|
||||||
return _alice
|
yield alice
|
||||||
|
alice.publication_threadpool.stop()
|
||||||
|
|
||||||
|
|
||||||
@pytest.fixture(scope="module")
|
@pytest.fixture(scope="module")
|
||||||
def blockchain_alice(alice_blockchain_test_config, testerchain):
|
def blockchain_alice(alice_blockchain_test_config, testerchain):
|
||||||
_alice = alice_blockchain_test_config.produce()
|
alice = alice_blockchain_test_config.produce()
|
||||||
return _alice
|
yield alice
|
||||||
|
alice.publication_threadpool.stop()
|
||||||
|
|
||||||
|
|
||||||
@pytest.fixture(scope="module")
|
@pytest.fixture(scope="module")
|
||||||
|
|
Loading…
Reference in New Issue