diff options
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") |