From 498474f35842111cd676008513cd87ecff7856eb Mon Sep 17 00:00:00 2001 From: Max Chechel Date: Fri, 11 Jan 2019 01:42:25 +0300 Subject: [PATCH] fixed TestIpfsStressRead on Windows License: MIT Signed-off-by: Max Chechel --- fuse/readonly/ipfs_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)