use bytes.Equal instead.

This commit is contained in:
David Hill 2014-02-04 15:40:16 -05:00
parent ced679c4e5
commit 25bb31ebd5

View file

@ -371,7 +371,7 @@ func TestReadResultCmd(t *testing.T) {
if err != nil { if err != nil {
t.Errorf("Should unmarshal result: %d %v", i, err) 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) t.Errorf("json byte arrays differ. %d %v %v", i, tt.msg, msg2)
} }
} }