From 9ce3875c068010389d7fe43ac2052f892528d601 Mon Sep 17 00:00:00 2001 From: Philip Nelson Date: Thu, 10 Sep 2015 07:50:36 -0700 Subject: [PATCH] Fix test case for fuse/readonly. License: MIT Signed-off-by: Philip Nelson --- fuse/readonly/ipfs_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fuse/readonly/ipfs_test.go b/fuse/readonly/ipfs_test.go index b2a8f3a2c..c6cb12151 100644 --- a/fuse/readonly/ipfs_test.go +++ b/fuse/readonly/ipfs_test.go @@ -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) }