Skip to content

Commit d30be1a

Browse files
committed
Fix testing of persistent state
1 parent 42b5b28 commit d30be1a

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

batchspawner/tests/test_spawners.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -90,10 +90,8 @@ def test_spawner_state_reload(db, io_loop):
9090
spawner.clear_state()
9191
assert spawner.get_state() == {}
9292
spawner.load_state(state)
93-
if version_info < (0,7):
94-
check_ip(spawner, testhost)
95-
else:
96-
check_ip(spawner, '0.0.0.0')
93+
# We used to check IP here, but that is actually only computed on start(),
94+
# and is not part of the spawner's persistent state
9795
assert spawner.job_id == testjob
9896

9997
def test_submit_failure(db, io_loop):

0 commit comments

Comments
 (0)