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:
Min RK
2017-07-27 11:45:53 +02:00
parent 8f1115a257
commit 638f980281

View File

@@ -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()