Crash the server correctly during error (#2231)
This commit is contained in:
@@ -2,7 +2,7 @@ import unittest
|
||||
|
||||
import requests
|
||||
|
||||
from sglang.srt.utils import kill_child_process
|
||||
from sglang.srt.utils import kill_process_tree
|
||||
from sglang.test.test_utils import (
|
||||
DEFAULT_SMALL_MODEL_NAME_FOR_TEST,
|
||||
DEFAULT_TIMEOUT_FOR_SERVER_LAUNCH,
|
||||
@@ -75,7 +75,7 @@ class TestEnableMetrics(unittest.TestCase):
|
||||
self.assertIn("_bucket{", metrics_content)
|
||||
|
||||
finally:
|
||||
kill_child_process(process.pid, include_self=True)
|
||||
kill_process_tree(process.pid)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
||||
Reference in New Issue
Block a user