mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-05-18 13:59:26 +00:00
swarm/fuse: use Equal instead of Compare (#15097)
This commit is contained in:
parent
69c8be7c86
commit
2dcb22afec
1 changed files with 1 additions and 1 deletions
|
|
@ -140,7 +140,7 @@ func compareGeneratedFileWithFileInMount(t *testing.T, files map[string]fileInfo
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatalf("Could not readfile %v : %v", fname, err)
|
t.Fatalf("Could not readfile %v : %v", fname, err)
|
||||||
}
|
}
|
||||||
if bytes.Compare(fileContents, finfo.contents) != 0 {
|
if !bytes.Equal(fileContents, finfo.contents) {
|
||||||
t.Fatalf("File %v contents mismatch: %v , %v", fname, fileContents, finfo.contents)
|
t.Fatalf("File %v contents mismatch: %v , %v", fname, fileContents, finfo.contents)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue