mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-05-12 02:41:00 +00:00
use bytes.Equal instead.
This commit is contained in:
parent
ced679c4e5
commit
25bb31ebd5
@ -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…
x
Reference in New Issue
Block a user