simplify testing

This commit is contained in:
v2ray
2016-05-24 21:55:46 +02:00
parent 3582b9d869
commit fc63f0432c
99 changed files with 726 additions and 817 deletions
+2 -3
View File
@@ -6,7 +6,6 @@ import (
"testing"
. "github.com/v2ray/v2ray-core/common/crypto"
v2testing "github.com/v2ray/v2ray-core/testing"
"github.com/v2ray/v2ray-core/testing/assert"
)
@@ -19,7 +18,7 @@ func mustDecodeHex(s string) []byte {
}
func TestChaCha20Stream(t *testing.T) {
v2testing.Current(t)
assert := assert.On(t)
var cases = []struct {
key []byte
@@ -58,7 +57,7 @@ func TestChaCha20Stream(t *testing.T) {
}
func TestChaCha20Decoding(t *testing.T) {
v2testing.Current(t)
assert := assert.On(t)
key := make([]byte, 32)
rand.Read(key)