1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2025-12-28 13:05:28 -05:00

update tests

This commit is contained in:
Darien Raymond
2018-07-13 14:36:09 +02:00
parent ffe18d94e4
commit 5e25741742
10 changed files with 98 additions and 63 deletions

View File

@@ -7,6 +7,7 @@ import (
"io"
"testing"
"v2ray.com/core/common"
"v2ray.com/core/common/buf"
. "v2ray.com/core/common/crypto"
"v2ray.com/core/common/protocol"
@@ -75,7 +76,7 @@ func TestAuthenticationReaderWriterPacket(t *testing.T) {
assert := With(t)
key := make([]byte, 16)
rand.Read(key)
common.Must2(rand.Read(key))
block, err := aes.NewCipher(key)
assert(err, IsNil)