Skip to content

Commit aa2fda7

Browse files
committed
fix windows CI
1 parent 4bc0786 commit aa2fda7

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

xinference/core/tests/test_metrics.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ async def test_disable_metrics_exporter_server(disable_metrics, setup_cluster):
124124
requests.get(metrics_exporter_address)
125125

126126

127+
@pytest.mark.timeout(300) # 5 minutes timeout to prevent hanging in Python 3.13
127128
async def test_metrics_exporter_data(setup_cluster):
128129
endpoint, metrics_exporter_address, supervisor_address = setup_cluster
129130

xinference/model/embedding/tests/test_embedding_models.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,10 @@ def test_register_fault_embedding():
258258
message = str(warning.message)
259259
if (
260260
"has error" in message
261-
and ("Invalid model URI" in message or "Model URI cannot be a relative path" in message)
261+
and (
262+
"Invalid model URI" in message
263+
or "Model URI cannot be a relative path" in message
264+
)
262265
and "/new_data/cache/gte-Qwen2" in message
263266
):
264267
found_warning = True

0 commit comments

Comments
 (0)