Skip to content

Transforms complex documents like PDFs and Office docs into LLM-ready markdown/JSON for your Agentic workflows.

test(router): allow equal lease timestamps on Windows

myhloli2fd858ddadf1
diff --git a/tests/unittest/test_router_route_state.py b/tests/unittest/test_router_route_state.py
index 936ce5ce..5070c0a3 100644
--- a/tests/unittest/test_router_route_state.py
+++ b/tests/unittest/test_router_route_state.py
@@ -179,7 +179,9 @@ def test_failed_lease_refresh_does_not_block_other_tasks_on_same_worker(monkeypa
previous_refresh = healthy.lease.refreshed_at
await tasks.maintain_task_result_leases(registry, pool)
assert seen.count("/v1/tasks/healthy-task") == round_number
- assert healthy.lease.refreshed_at > previous_refresh
+ # Windows 单调时钟的相邻读数可能相等;逐轮请求次数验证实际续租已执行。
+ assert healthy.lease.refreshed_at > 0
+ assert healthy.lease.refreshed_at >= previous_refresh
assert slow.lease.refreshed_at == 0
finally:
await pool.client.aclose()