From 371ca729002ff4e72445a9fd50deae65ce0050e6 Mon Sep 17 00:00:00 2001 From: Blake Harnden <32446120+bharnden@users.noreply.github.com> Date: Tue, 15 Sep 2020 13:07:08 -0700 Subject: [PATCH] tests: update to fix grpc shutdown during tests, when not mocking --- daemon/tests/conftest.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/daemon/tests/conftest.py b/daemon/tests/conftest.py index f6ecfbaab..a558fcec1 100644 --- a/daemon/tests/conftest.py +++ b/daemon/tests/conftest.py @@ -117,6 +117,8 @@ def module_coretlv(patcher, global_coreemu, global_session): @pytest.fixture def grpc_server(module_grpc): yield module_grpc + for session in module_grpc.coreemu.sessions.values(): + session.set_state(EventTypes.CONFIGURATION_STATE) module_grpc.coreemu.shutdown()