use bytes.Equal instead.
This commit is contained in:
parent
ced679c4e5
commit
25bb31ebd5
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue