From 00a3b726dd9f81474df867b834d67b25e9d6ade4 Mon Sep 17 00:00:00 2001 From: Jeff Bean Date: Wed, 27 Jun 2018 10:31:26 -0700 Subject: Fixing staticcheck errors from linux files --- server/sockopt_linux_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'server/sockopt_linux_test.go') diff --git a/server/sockopt_linux_test.go b/server/sockopt_linux_test.go index 3730672c..a08e7fc7 100644 --- a/server/sockopt_linux_test.go +++ b/server/sockopt_linux_test.go @@ -42,7 +42,7 @@ func Test_buildTcpMD5Sig(t *testing.T) { buf2 := []uint8{2, 0, 0, 0, 1, 2, 3, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 0, 0, 0, 0, 0, 104, 101, 108, 108, 111, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0} - if bytes.Compare(buf1, buf2) == 0 { + if bytes.Equal(buf1, buf2) { t.Log("OK") } else { t.Error("Something wrong v4") @@ -62,7 +62,7 @@ func Test_buildTcpMD5Sigv6(t *testing.T) { buf2[0] = syscall.AF_INET6 - if bytes.Compare(buf1, buf2) == 0 { + if bytes.Equal(buf1, buf2) { t.Log("OK") } else { t.Error("Something wrong v6") -- cgit v1.2.3