[Config] msgspec.Struct for the config tier (#38753)
This commit is contained in:
@@ -21,11 +21,13 @@ Current coverage:
|
||||
"""
|
||||
|
||||
import asyncio
|
||||
import dataclasses
|
||||
import json
|
||||
import unittest
|
||||
from types import SimpleNamespace
|
||||
|
||||
import msgspec
|
||||
import msgspec.structs
|
||||
|
||||
from sglang.srt.arg_groups.validation_hook import check_load_publish_args
|
||||
from sglang.srt.entrypoints import http_server
|
||||
from sglang.srt.lora.lora_registry import LoRARef
|
||||
@@ -457,7 +459,7 @@ class TestServerInfoExistingFieldsPreserved(CustomTestCase):
|
||||
|
||||
info = _call_server_info_with(args)
|
||||
|
||||
for field in dataclasses.fields(ServerArgs):
|
||||
for field in msgspec.structs.fields(ServerArgs):
|
||||
self.assertIn(
|
||||
field.name,
|
||||
info,
|
||||
|
||||
Reference in New Issue
Block a user