swarm/fuse: use Equal instead of Compare (#15097)

This commit is contained in:
Fiisio 2017-09-08 05:10:51 +08:00 committed by Felix Lange
parent 69c8be7c86
commit 2dcb22afec

View File

@ -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)
}