1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-06-10 09:50:43 +00:00

fix test break

This commit is contained in:
Darien Raymond 2018-04-02 22:17:06 +02:00
parent 009d58dd6c
commit 4c2edeb18a
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169
2 changed files with 4 additions and 4 deletions

View File

@ -15,13 +15,13 @@ func TestAllHeadersLoadable(t *testing.T) {
noopAuth, err := CreatePacketHeader((*noop.Config)(nil))
assert(err, IsNil)
assert(noopAuth.Size(), Equals, 0)
assert(noopAuth.Size(), Equals, int32(0))
srtp, err := CreatePacketHeader((*srtp.Config)(nil))
assert(err, IsNil)
assert(srtp.Size(), Equals, 4)
assert(srtp.Size(), Equals, int32(4))
utp, err := CreatePacketHeader((*utp.Config)(nil))
assert(err, IsNil)
assert(utp.Size(), Equals, 4)
assert(utp.Size(), Equals, int32(4))
}

View File

@ -41,7 +41,7 @@ func TestHTTPConnection(t *testing.T) {
}
nBytes, err := conn.Write(b.Bytes())
assert(err, IsNil)
assert(nBytes, Equals, b.Len())
assert(int32(nBytes), Equals, b.Len())
}
}()
})