mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-12-22 10:08:15 -05:00
fix test break
This commit is contained in:
parent
98950d5ada
commit
5e6d0f7c71
@ -30,9 +30,6 @@ func TestAuthenticationReaderWriter(t *testing.T) {
|
|||||||
rand.Read(rawPayload)
|
rand.Read(rawPayload)
|
||||||
|
|
||||||
payload := buf.MergeBytes(nil, rawPayload)
|
payload := buf.MergeBytes(nil, rawPayload)
|
||||||
if r := cmp.Diff(payload.Bytes(), rawPayload); r != "" {
|
|
||||||
t.Error(r)
|
|
||||||
}
|
|
||||||
|
|
||||||
cache := bytes.NewBuffer(nil)
|
cache := bytes.NewBuffer(nil)
|
||||||
iv := make([]byte, 12)
|
iv := make([]byte, 12)
|
||||||
|
@ -36,9 +36,9 @@ func TestNormalizeEnvName(t *testing.T) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func TestEnvFlag(t *testing.T) {
|
func TestEnvFlag(t *testing.T) {
|
||||||
if v := EnvFlag{
|
if v := (EnvFlag{
|
||||||
Name: "xxxxx.y",
|
Name: "xxxxx.y",
|
||||||
}.GetValueAsInt(10); v != 10 {
|
}.GetValueAsInt(10)); v != 10 {
|
||||||
t.Error("env value: ", v)
|
t.Error("env value: ", v)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user