test(moe): exercise megamoe a2a handler without dummy shortcut

Tested: PYTHONPYCACHEPREFIX=/private/tmp/sglang_pycache python3 -m py_compile test/registered/unit/server_args/test_server_args.py python/sglang/srt/layers/moe/mega_moe.py
This commit is contained in:
LuminolT
2026-07-06 14:16:01 +08:00
parent 0d3bf6b5c2
commit f482a06a51

View File

@@ -223,6 +223,7 @@ def test_megamoe_a2a_backend_parser_sets_ep_to_tp():
]
)
args = ServerArgs.from_cli_args(raw_args)
args._handle_a2a_moe()
assert args.moe_a2a_backend == "megamoe"
assert args.tp_size == 4
assert args.ep_size == 4