1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2025-12-27 04:25:44 -05:00

refine error message

This commit is contained in:
Darien Raymond
2016-11-19 14:38:13 +01:00
parent 26aa48d4f9
commit 2078f29142
10 changed files with 39 additions and 70 deletions

View File

@@ -5,7 +5,6 @@ import (
v2net "v2ray.com/core/common/net"
"v2ray.com/core/testing/assert"
"v2ray.com/core/transport"
)
func TestSingleByteUDPRequest(t *testing.T) {
@@ -15,7 +14,7 @@ func TestSingleByteUDPRequest(t *testing.T) {
if request != nil {
t.Fail()
}
assert.Error(err).Equals(transport.ErrCorruptedPacket)
assert.Error(err).IsNotNil()
}
func TestDomainAddressRequest(t *testing.T) {