checkpoint: named server state

This commit is contained in:
Min RK
2017-06-22 14:59:57 +02:00
parent 5263e4ceae
commit 653a39c05e
4 changed files with 12 additions and 8 deletions

View File

@@ -153,8 +153,10 @@ def test_spawner_poll(db, io_loop):
proc = first_spawner.proc
status = io_loop.run_sync(first_spawner.poll)
assert status is None
user.state = first_spawner.get_state()
assert 'pid' in user.state
if user.state is None:
user.state = {}
user.state[''] = first_spawner.get_state()
assert 'pid' in user.state['']
# create a new Spawner, loading from state of previous
spawner = new_spawner(db, user=first_spawner.user)