diff --git a/fuse/readonly/ipfs_test.go b/fuse/readonly/ipfs_test.go index c8afaf0d6..f7d5fb2e0 100644 --- a/fuse/readonly/ipfs_test.go +++ b/fuse/readonly/ipfs_test.go @@ -173,7 +173,7 @@ func TestIpfsStressRead(t *testing.T) { t.Fatal(err) } - relpath := strings.Replace(item.String(), "/ipfs/", "/", 1) + relpath := strings.Replace(item.String(), item.Namespace(), "", 1) fname := path.Join(mnt.Dir, relpath) rbuf, err := ioutil.ReadFile(fname)