tests: update to fix grpc shutdown during tests, when not mocking

This commit is contained in:
Blake Harnden 2020-09-15 13:07:08 -07:00
parent d43d854314
commit 371ca72900

View file

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