diff --git a/common/crypto/auth_test.go b/common/crypto/auth_test.go index 74bab0a9..17a2f1b6 100644 --- a/common/crypto/auth_test.go +++ b/common/crypto/auth_test.go @@ -30,9 +30,6 @@ func TestAuthenticationReaderWriter(t *testing.T) { rand.Read(rawPayload) payload := buf.MergeBytes(nil, rawPayload) - if r := cmp.Diff(payload.Bytes(), rawPayload); r != "" { - t.Error(r) - } cache := bytes.NewBuffer(nil) iv := make([]byte, 12) diff --git a/common/platform/platform_test.go b/common/platform/platform_test.go index d4326a33..8cdb51fe 100644 --- a/common/platform/platform_test.go +++ b/common/platform/platform_test.go @@ -36,9 +36,9 @@ func TestNormalizeEnvName(t *testing.T) { } func TestEnvFlag(t *testing.T) { - if v := EnvFlag{ + if v := (EnvFlag{ Name: "xxxxx.y", - }.GetValueAsInt(10); v != 10 { + }.GetValueAsInt(10)); v != 10 { t.Error("env value: ", v) } }