cleanup for test fixtures to help simplify test_gui fixture setup
This commit is contained in:
parent
27be86f175
commit
6045908a14
4 changed files with 259 additions and 243 deletions
|
@ -49,7 +49,7 @@ class CoreEmu:
|
|||
self.config = config
|
||||
|
||||
# session management
|
||||
self.session_id_gen = IdGen(_id=0)
|
||||
self.session_id_gen = IdGen()
|
||||
self.sessions = {}
|
||||
|
||||
# load services
|
||||
|
@ -79,6 +79,7 @@ class CoreEmu:
|
|||
:return: nothing
|
||||
"""
|
||||
logging.info("shutting down all sessions")
|
||||
self.session_id_gen.id = 0
|
||||
sessions = self.sessions.copy()
|
||||
self.sessions.clear()
|
||||
for _id in sessions:
|
||||
|
|
|
@ -1368,6 +1368,7 @@ class Session:
|
|||
while self.nodes:
|
||||
_, node = self.nodes.popitem()
|
||||
node.shutdown()
|
||||
self.node_id_gen.id = 0
|
||||
|
||||
def write_nodes(self):
|
||||
"""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue