Skip to content

Commit

Permalink
tests: update to fix grpc shutdown during tests, when not mocking
Browse files Browse the repository at this point in the history
  • Loading branch information
bharnden committed Sep 15, 2020
1 parent d43d854 commit 371ca72
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions daemon/tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()


Expand Down

0 comments on commit 371ca72

Please sign in to comment.