1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-12-30 14:06:58 -05:00

fix commander test

This commit is contained in:
Darien Raymond 2018-02-08 23:33:40 +01:00
parent d9040b571d
commit c05dade00a
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169

View File

@ -33,7 +33,12 @@ func TestCommanderRemoveHandler(t *testing.T) {
cmdPort := pickPort()
clientConfig := &core.Config{
App: []*serial.TypedMessage{
serial.ToTypedMessage(&commander.Config{Tag: "api"}),
serial.ToTypedMessage(&commander.Config{
Tag: "api",
Service: []*serial.TypedMessage{
serial.ToTypedMessage(&command.Config{}),
},
}),
serial.ToTypedMessage(&router.Config{
Rule: []*router.RoutingRule{
{
@ -42,7 +47,6 @@ func TestCommanderRemoveHandler(t *testing.T) {
},
},
}),
serial.ToTypedMessage(&command.Config{}),
},
Inbound: []*core.InboundHandlerConfig{
{