summaryrefslogtreecommitdiffhomepage
path: root/device
diff options
context:
space:
mode:
Diffstat (limited to 'device')
-rw-r--r--device/device_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/device/device_test.go b/device/device_test.go
index b6212b5..cdbd458 100644
--- a/device/device_test.go
+++ b/device/device_test.go
@@ -61,8 +61,8 @@ func assertNil(t *testing.T, err error) {
}
}
-func assertEqual(t *testing.T, a []byte, b []byte) {
- if bytes.Compare(a, b) != 0 {
+func assertEqual(t *testing.T, a, b []byte) {
+ if !bytes.Equal(a, b) {
t.Fatal(a, "!=", b)
}
}