mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-18 07:23:00 +00:00
Merge pull request #5023 from minrk/spawn-pending
try to fix flaky spawn_pending browser test
This commit is contained in:
@@ -291,7 +291,8 @@ async def test_spawn_pending_progress(
|
|||||||
"Spawning server...",
|
"Spawning server...",
|
||||||
f"Server ready at {app.base_url}user/{urlname}/",
|
f"Server ready at {app.base_url}user/{urlname}/",
|
||||||
]
|
]
|
||||||
while not user.spawner.ready:
|
logs_list = []
|
||||||
|
while not user.spawner.ready and len(logs_list) < len(expected_messages):
|
||||||
logs_list = [
|
logs_list = [
|
||||||
await log.text_content()
|
await log.text_content()
|
||||||
for log in await browser.locator("div.progress-log-event").all()
|
for log in await browser.locator("div.progress-log-event").all()
|
||||||
|
@@ -11,6 +11,9 @@ asyncio_default_fixture_loop_scope = module
|
|||||||
# jupyter_server plugin is incompatible with notebook imports
|
# jupyter_server plugin is incompatible with notebook imports
|
||||||
addopts = -p no:jupyter_server -m 'not browser' --color yes --durations 10 --verbose
|
addopts = -p no:jupyter_server -m 'not browser' --color yes --durations 10 --verbose
|
||||||
|
|
||||||
|
log_format = %(asctime)s %(levelname)s %(filename)s:%(lineno)s %(message)s
|
||||||
|
log_date_format = %H:%M:%S
|
||||||
|
|
||||||
python_files = test_*.py
|
python_files = test_*.py
|
||||||
markers =
|
markers =
|
||||||
gen_test: marks an async tornado test
|
gen_test: marks an async tornado test
|
||||||
|
Reference in New Issue
Block a user