fixed TestIpfsStressRead on Windows

License: MIT
Signed-off-by: Max Chechel <mc@gojuno.com>
This commit is contained in:
Max Chechel 2019-01-11 01:42:25 +03:00
parent c0ab433186
commit 498474f358

View File

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