mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-17 01:13:45 +00:00
should use bytes.Equal(fileContents, finfo.contents) instead
This commit is contained in:
parent
03d00361f5
commit
5fffd02453
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 {
|
||||
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)
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue