[Misc] Fix test_sleep to use query parameters (#14373)

Signed-off-by: Lize Cai <lize.cai@sap.com>
Signed-off-by: youkaichao <youkaichao@gmail.com>
Co-authored-by: youkaichao <youkaichao@gmail.com>
This commit is contained in:
Lize Cai 2025-03-28 19:00:14 +09:00 committed by GitHub
parent 70f2c2a709
commit a10314c6b3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -25,8 +25,9 @@ def test_sleep_mode():
"VLLM_SERVER_DEV_MODE": "1",
"CUDA_VISIBLE_DEVICES": "0"
}) as remote_server:
response = requests.post(remote_server.url_for("/sleep"),
data={"level": "1"})
params={"level": "1"})
assert response.status_code == 200
response = requests.get(remote_server.url_for("/is_sleeping"))
assert response.status_code == 200