1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2025-10-24 10:04:05 -04:00

Remove error defination

This commit is contained in:
V2Ray
2015-10-13 13:55:06 +02:00
parent 93625dd656
commit 1d40220d31
13 changed files with 74 additions and 214 deletions

View File

@@ -18,7 +18,7 @@ func TestSocks4AuthenticationRequestRead(t *testing.T) {
0x72, 0x72, 0x72, 0x72,
}
_, request4, err := ReadAuthentication(bytes.NewReader(rawRequest))
assert.Error(err).HasCode(1000)
assert.Error(err).Equals(Socks4Downgrade)
assert.Byte(request4.Version).Named("Version").Equals(0x04)
assert.Byte(request4.Command).Named("Command").Equals(0x01)
assert.Uint16(request4.Port).Named("Port").Equals(53)