Skip to content
Snippets Groups Projects
Commit 9ce3875c authored by Philip Nelson's avatar Philip Nelson
Browse files

Fix test case for fuse/readonly.


License: MIT
Signed-off-by: default avatarPhilip Nelson <me@pnelson.ca>
parent 21079303
No related branches found
No related tags found
1 merge request!1New
......@@ -136,7 +136,7 @@ func TestIpfsStressRead(t *testing.T) {
db := uio.NewDirectory(nd.DAG)
for j := 0; j < 1+rand.Intn(10); j++ {
name := fmt.Sprintf("child%d", j)
err := db.AddChild(name, ks[rand.Intn(len(ks))])
err := db.AddChild(nd.Context(), name, ks[rand.Intn(len(ks))])
if err != nil {
t.Fatal(err)
}
......@@ -204,7 +204,7 @@ func TestIpfsBasicDirRead(t *testing.T) {
// Make a directory and put that file in it
db := uio.NewDirectory(nd.DAG)
err = db.AddChild("actual", k)
err = db.AddChild(nd.Context(), "actual", k)
if err != nil {
t.Fatal(err)
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment