aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFiisio <liangcszzu@163.com>2017-09-08 05:10:51 +0800
committerFelix Lange <fjl@users.noreply.github.com>2017-09-08 05:10:51 +0800
commit2dcb22afec1616c3eb8897be96f01b0a5ab185c9 (patch)
tree526dfeb4b71ca65da35ce57341b57352fc74e877
parent69c8be7c86d5747e9ef2a59ed769d769fd9249f5 (diff)
downloadgo-tangerine-2dcb22afec1616c3eb8897be96f01b0a5ab185c9.tar
go-tangerine-2dcb22afec1616c3eb8897be96f01b0a5ab185c9.tar.gz
go-tangerine-2dcb22afec1616c3eb8897be96f01b0a5ab185c9.tar.bz2
go-tangerine-2dcb22afec1616c3eb8897be96f01b0a5ab185c9.tar.lz
go-tangerine-2dcb22afec1616c3eb8897be96f01b0a5ab185c9.tar.xz
go-tangerine-2dcb22afec1616c3eb8897be96f01b0a5ab185c9.tar.zst
go-tangerine-2dcb22afec1616c3eb8897be96f01b0a5ab185c9.zip
swarm/fuse: use Equal instead of Compare (#15097)
-rw-r--r--swarm/fuse/swarmfs_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/swarm/fuse/swarmfs_test.go b/swarm/fuse/swarmfs_test.go
index 69f3cc615..93f1d4c2f 100644
--- a/swarm/fuse/swarmfs_test.go
+++ b/swarm/fuse/swarmfs_test.go
@@ -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)
}