diff --git a/sonyflake_test.go b/sonyflake_test.go index 0a7aa4f..98f8552 100644 --- a/sonyflake_test.go +++ b/sonyflake_test.go @@ -1,7 +1,6 @@ package sonyflake import ( - "bytes" "errors" "fmt" "net" @@ -259,7 +258,7 @@ func TestPrivateIPv4(t *testing.T) { return } - if bytes.Equal(actual, tc.expected) { + if net.IP.Equal(actual, tc.expected) { return } else { t.Errorf("error: expected: %s, but got: %s", tc.expected, actual)