From 18993022ea696216dd27c56485ab3ed39e0026a7 Mon Sep 17 00:00:00 2001 From: jMyles Date: Fri, 22 May 2020 12:54:29 -0700 Subject: [PATCH] Stop Alice's publication threadpool at the end of fixtures; otherwise tests hang. --- tests/fixtures.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/tests/fixtures.py b/tests/fixtures.py index 75cf22d38..891e8d9d7 100644 --- a/tests/fixtures.py +++ b/tests/fixtures.py @@ -340,14 +340,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")