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
a38f6932
Unverified
Commit
a38f6932
authored
Apr 27, 2025
by
Lianmin Zheng
Committed by
GitHub
Apr 27, 2025
Browse files
[CI] Fix test case (#5790)
parent
beb65c74
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
python/sglang/test/test_utils.py
python/sglang/test/test_utils.py
+2
-2
test/srt/test_bench_serving.py
test/srt/test_bench_serving.py
+1
-1
No files found.
python/sglang/test/test_utils.py
View file @
a38f6932
...
@@ -518,7 +518,7 @@ def run_unittest_files(files: List[TestFile], timeout_per_file: float):
...
@@ -518,7 +518,7 @@ def run_unittest_files(files: List[TestFile], timeout_per_file: float):
filename
=
os
.
path
.
join
(
os
.
getcwd
(),
filename
)
filename
=
os
.
path
.
join
(
os
.
getcwd
(),
filename
)
print
(
print
(
f
".
\n
.
\n
Begin (
{
i
}
/
{
len
(
files
)
}
):
\n
python3
{
filename
}
\n
.
\n
.
\n
"
,
f
".
\n
.
\n
Begin (
{
i
}
/
{
len
(
files
)
-
1
}
):
\n
python3
{
filename
}
\n
.
\n
.
\n
"
,
flush
=
True
,
flush
=
True
,
)
)
tic
=
time
.
time
()
tic
=
time
.
time
()
...
@@ -530,7 +530,7 @@ def run_unittest_files(files: List[TestFile], timeout_per_file: float):
...
@@ -530,7 +530,7 @@ def run_unittest_files(files: List[TestFile], timeout_per_file: float):
elapsed
=
time
.
time
()
-
tic
elapsed
=
time
.
time
()
-
tic
print
(
print
(
f
".
\n
.
\n
End (
{
i
}
/
{
len
(
files
)
}
):
\n
{
filename
=
}
,
{
elapsed
=
:.
0
f
}
,
{
estimated_time
=
}
\n
.
\n
.
\n
"
,
f
".
\n
.
\n
End (
{
i
}
/
{
len
(
files
)
-
1
}
):
\n
{
filename
=
}
,
{
elapsed
=
:.
0
f
}
,
{
estimated_time
=
}
\n
.
\n
.
\n
"
,
flush
=
True
,
flush
=
True
,
)
)
return
process
.
returncode
return
process
.
returncode
...
...
test/srt/test_bench_serving.py
View file @
a38f6932
...
@@ -164,7 +164,7 @@ class TestBenchServing(CustomTestCase):
...
@@ -164,7 +164,7 @@ class TestBenchServing(CustomTestCase):
f
'median_e2e_latency_ms :
{
res
[
"median_e2e_latency_ms"
]:.
2
f
}
ms
\n
'
f
'median_e2e_latency_ms :
{
res
[
"median_e2e_latency_ms"
]:.
2
f
}
ms
\n
'
f
'accept_length :
{
res
[
"accept_length"
]:.
2
f
}
\n
'
f
'accept_length :
{
res
[
"accept_length"
]:.
2
f
}
\n
'
)
)
self
.
assertLess
(
res
[
"median_e2e_latency_ms"
],
8
00
)
self
.
assertLess
(
res
[
"median_e2e_latency_ms"
],
9
00
)
self
.
assertGreater
(
res
[
"accept_length"
],
3.0
)
self
.
assertGreater
(
res
[
"accept_length"
],
3.0
)
def
test_moe_offline_throughput_default
(
self
):
def
test_moe_offline_throughput_default
(
self
):
...
...
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