Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
change
sglang
Commits
061c8959
Unverified
Commit
061c8959
authored
Aug 01, 2025
by
Michael Yao
Committed by
GitHub
Jul 31, 2025
Browse files
Fix typos in py_test/test_launch_server.py (#6227)
Signed-off-by:
windsonsea
<
haifeng.yao@daocloud.io
>
parent
4acf6902
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
sgl-router/py_test/test_launch_server.py
sgl-router/py_test/test_launch_server.py
+4
-4
No files found.
sgl-router/py_test/test_launch_server.py
View file @
061c8959
...
...
@@ -249,7 +249,7 @@ class TestLaunchServer(unittest.TestCase):
)
self
.
other_process
.
append
(
worker_process
)
# 2. use /add_worker api to add it t
he
the router. It will be used by router after it is healthy
# 2. use /add_worker api to add it t
o
the router. It will be used by
the
router after it is healthy
with
requests
.
Session
()
as
session
:
response
=
session
.
post
(
f
"
{
self
.
base_url
}
/add_worker?url=
{
worker_url
}
"
)
print
(
f
"status code:
{
response
.
status_code
}
, response:
{
response
.
text
}
"
)
...
...
@@ -304,7 +304,7 @@ class TestLaunchServer(unittest.TestCase):
)
self
.
other_process
.
append
(
worker_process
)
# 2. use /add_worker api to add it t
he
the router. It will be used by router after it is healthy
# 2. use /add_worker api to add it t
o
the router. It will be used by
the
router after it is healthy
with
requests
.
Session
()
as
session
:
response
=
session
.
post
(
f
"
{
self
.
base_url
}
/add_worker?url=
{
worker_url
}
"
)
print
(
f
"status code:
{
response
.
status_code
}
, response:
{
response
.
text
}
"
)
...
...
@@ -340,7 +340,7 @@ class TestLaunchServer(unittest.TestCase):
def
test_4_payload_size
(
self
):
print
(
"Running test_4_payload_size..."
)
# Start router with
3
MB limit
# Start router with
1
MB limit
self
.
process
=
popen_launch_router
(
self
.
model
,
self
.
base_url
,
...
...
@@ -398,7 +398,7 @@ class TestLaunchServer(unittest.TestCase):
api_key
=
"correct_api_key"
,
)
#
#
Test case 1: request without api key should fail
# Test case 1: request without api key should fail
with
requests
.
Session
()
as
session
:
response
=
session
.
post
(
f
"
{
self
.
base_url
}
/generate"
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment