Fix CI tests (#4853)

This commit is contained in:
Lianmin Zheng
2025-03-28 00:28:35 -07:00
committed by GitHub
parent 7907f9eb20
commit 47e6628aae
6 changed files with 28 additions and 30 deletions

View File

@@ -2,7 +2,7 @@ import json
import unittest
from unittest.mock import MagicMock, patch
from sglang.srt.server_args import PortArgs, ServerArgs, prepare_server_args
from sglang.srt.server_args import PortArgs, prepare_server_args
from sglang.test.test_utils import CustomTestCase
@@ -75,7 +75,8 @@ class TestPortArgs(unittest.TestCase):
port_args = PortArgs.init_new(server_args, dp_rank=2)
self.assertTrue(port_args.scheduler_input_ipc_name.endswith(":25006"))
print(f"{port_args=}")
self.assertTrue(port_args.scheduler_input_ipc_name.endswith(":25007"))
self.assertTrue(port_args.tokenizer_ipc_name.startswith("tcp://192.168.1.1:"))
self.assertTrue(port_args.detokenizer_ipc_name.startswith("tcp://192.168.1.1:"))