fix test break

pull/812/head
Darien Raymond 2018-01-10 12:59:45 +01:00
parent 292d7cc353
commit e4554e5871
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169
1 changed files with 6 additions and 2 deletions

View File

@ -22,7 +22,11 @@ func TestV2RayClose(t *testing.T) {
port := net.Port(dice.RollUint16())
config := &Config{
Inbound: []*core.InboundHandlerConfig{
App: []*serial.TypedMessage{
serial.ToTypedMessage(&proxyman.InboundConfig{}),
serial.ToTypedMessage(&proxyman.OutboundConfig{}),
},
Inbound: []*InboundHandlerConfig{
{
ReceiverSettings: serial.ToTypedMessage(&proxyman.ReceiverConfig{
PortRange: net.SinglePortRange(port),
@ -37,7 +41,7 @@ func TestV2RayClose(t *testing.T) {
}),
},
},
Outbound: []*core.OutboundHandlerConfig{
Outbound: []*OutboundHandlerConfig{
{
ProxySettings: serial.ToTypedMessage(&outbound.Config{
Receiver: []*protocol.ServerEndpoint{