mirror of https://github.com/v2ray/v2ray-core
fix test break
parent
546c2fb226
commit
16c6a5f078
|
@ -34,7 +34,7 @@ func TestRequestSerialization(t *testing.T) {
|
||||||
Command: protocol.RequestCommandTCP,
|
Command: protocol.RequestCommandTCP,
|
||||||
Address: net.DomainAddress("www.v2ray.com"),
|
Address: net.DomainAddress("www.v2ray.com"),
|
||||||
Port: net.Port(443),
|
Port: net.Port(443),
|
||||||
Security: protocol.Security(protocol.SecurityType_AES128_GCM),
|
Security: protocol.SecurityType_AES128_GCM,
|
||||||
}
|
}
|
||||||
|
|
||||||
buffer := buf.New()
|
buffer := buf.New()
|
||||||
|
@ -87,7 +87,7 @@ func TestInvalidRequest(t *testing.T) {
|
||||||
Command: protocol.RequestCommand(100),
|
Command: protocol.RequestCommand(100),
|
||||||
Address: net.DomainAddress("www.v2ray.com"),
|
Address: net.DomainAddress("www.v2ray.com"),
|
||||||
Port: net.Port(443),
|
Port: net.Port(443),
|
||||||
Security: protocol.Security(protocol.SecurityType_AES128_GCM),
|
Security: protocol.SecurityType_AES128_GCM,
|
||||||
}
|
}
|
||||||
|
|
||||||
buffer := buf.New()
|
buffer := buf.New()
|
||||||
|
@ -127,7 +127,7 @@ func TestMuxRequest(t *testing.T) {
|
||||||
Version: 1,
|
Version: 1,
|
||||||
User: user,
|
User: user,
|
||||||
Command: protocol.RequestCommandMux,
|
Command: protocol.RequestCommandMux,
|
||||||
Security: protocol.Security(protocol.SecurityType_AES128_GCM),
|
Security: protocol.SecurityType_AES128_GCM,
|
||||||
}
|
}
|
||||||
|
|
||||||
buffer := buf.New()
|
buffer := buf.New()
|
||||||
|
|
Loading…
Reference in New Issue