From 5e6d0f7c7177b9c0a89dcfdb0c25166a565ad8aa Mon Sep 17 00:00:00 2001 From: Darien Raymond Date: Sun, 10 Feb 2019 15:26:43 +0100 Subject: [PATCH] fix test break --- common/crypto/auth_test.go | 3 --- common/platform/platform_test.go | 4 ++-- 2 files changed, 2 insertions(+), 5 deletions(-) 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) } }