diff options
author | Jeff Bean <bean@uber.com> | 2018-06-27 10:31:26 -0700 |
---|---|---|
committer | Jeff Bean <bean@uber.com> | 2018-06-27 10:31:26 -0700 |
commit | 00a3b726dd9f81474df867b834d67b25e9d6ade4 (patch) | |
tree | d6eb0f31a6ba0ac571177934bdb26e07de37e115 /server/sockopt_linux_test.go | |
parent | 29d0e59af48c843b686f6a77c3cb7f34fc59568d (diff) |
Fixing staticcheck errors from linux files
Diffstat (limited to 'server/sockopt_linux_test.go')
-rw-r--r-- | server/sockopt_linux_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
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") |