mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-10 11:33:01 +00:00
fix race waiting for slow spawners
wait for `.running` instead of `._spawn_pending`, since we now have `._proxy_pending` as well to wait for.
This commit is contained in:
@@ -462,7 +462,7 @@ def test_slow_spawn(app, no_patience, request):
|
||||
|
||||
@gen.coroutine
|
||||
def wait_spawn():
|
||||
while app_user.spawner._spawn_pending:
|
||||
while not app_user.running(''):
|
||||
yield gen.sleep(0.1)
|
||||
|
||||
yield wait_spawn()
|
||||
|
Reference in New Issue
Block a user