From 25bb31ebd5847227bca0b56a7bb15618e94c5e80 Mon Sep 17 00:00:00 2001 From: David Hill Date: Tue, 4 Feb 2014 15:40:16 -0500 Subject: [PATCH] use bytes.Equal instead. --- jsonapi_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jsonapi_test.go b/jsonapi_test.go index 8297a3ed..98ec517e 100644 --- a/jsonapi_test.go +++ b/jsonapi_test.go @@ -371,7 +371,7 @@ func TestReadResultCmd(t *testing.T) { if err != nil { t.Errorf("Should unmarshal result: %d %v", i, err) } - if bytes.Compare(tt.msg, msg2) != 0 { + if !bytes.Equal(tt.msg, msg2) { t.Errorf("json byte arrays differ. %d %v %v", i, tt.msg, msg2) } }