test: clarify off-loop thread assertions

This commit is contained in:
Yiorgis Gozadinos 2026-06-22 10:51:35 +03:00
parent d3a1011baf
commit ad3b111cf1
No known key found for this signature in database
2 changed files with 2 additions and 2 deletions

View file

@ -100,7 +100,7 @@ async def test_parse_zip_runs_off_event_loop_thread():
and DoclingDocument.model_validate all synchronous and CPU-heavy (full-
resolution page rasters when generate_page_images is on). It must run off
the event-loop thread, or it stalls every other worker's coroutine. Capture
the thread it runs on and assert it is not the main thread."""
the thread it runs on and assert it is not the event-loop thread."""
import threading
config = AppConfig()

View file

@ -163,7 +163,7 @@ async def test_concatenate_runs_off_event_loop_thread(tmp_path, monkeypatch):
base64 page/picture images CPU-heavy and proportional to total document
size. It must run off the event-loop thread so it doesn't stall other
workers' coroutines. Capture the thread it runs on and assert it is not the
main thread."""
event-loop thread."""
import threading
from docling_core.types.doc.document import DoclingDocument