Skip to content

Commit 2e7bb82

Browse files
lizzzcaiyoukaichao
authored andcommitted
[Misc] Fix test_sleep to use query parameters (vllm-project#14373)
Signed-off-by: Lize Cai <lize.cai@sap.com> Signed-off-by: youkaichao <youkaichao@gmail.com> Co-authored-by: youkaichao <youkaichao@gmail.com>
1 parent 14f5097 commit 2e7bb82

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/entrypoints/openai/test_sleep.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,9 @@ def test_sleep_mode():
2525
"VLLM_SERVER_DEV_MODE": "1",
2626
"CUDA_VISIBLE_DEVICES": "0"
2727
}) as remote_server:
28+
2829
response = requests.post(remote_server.url_for("/sleep"),
29-
data={"level": "1"})
30+
params={"level": "1"})
3031
assert response.status_code == 200
3132
response = requests.get(remote_server.url_for("/is_sleeping"))
3233
assert response.status_code == 200

0 commit comments

Comments
 (0)