mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-16 06:22:59 +00:00
test inconsistent state if Spawner.start fails
This commit is contained in:
@@ -322,9 +322,9 @@ class User(Base):
|
||||
spawner.api_token = api_token
|
||||
|
||||
self.spawn_pending = True
|
||||
f = spawner.start()
|
||||
# wait for spawner.start to return
|
||||
try:
|
||||
f = spawner.start()
|
||||
yield gen.with_timeout(timedelta(seconds=spawner.start_timeout), f)
|
||||
except Exception as e:
|
||||
if isinstance(e, gen.TimeoutError):
|
||||
|
Reference in New Issue
Block a user