fix test break

pull/876/merge
Darien Raymond 7 years ago
parent 546c2fb226
commit 16c6a5f078
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169

@ -34,7 +34,7 @@ func TestRequestSerialization(t *testing.T) {
Command: protocol.RequestCommandTCP,
Address: net.DomainAddress("www.v2ray.com"),
Port: net.Port(443),
Security: protocol.Security(protocol.SecurityType_AES128_GCM),
Security: protocol.SecurityType_AES128_GCM,
}
buffer := buf.New()
@ -87,7 +87,7 @@ func TestInvalidRequest(t *testing.T) {
Command: protocol.RequestCommand(100),
Address: net.DomainAddress("www.v2ray.com"),
Port: net.Port(443),
Security: protocol.Security(protocol.SecurityType_AES128_GCM),
Security: protocol.SecurityType_AES128_GCM,
}
buffer := buf.New()
@ -127,7 +127,7 @@ func TestMuxRequest(t *testing.T) {
Version: 1,
User: user,
Command: protocol.RequestCommandMux,
Security: protocol.Security(protocol.SecurityType_AES128_GCM),
Security: protocol.SecurityType_AES128_GCM,
}
buffer := buf.New()

Loading…
Cancel
Save