Fix test case for fuse/readonly.
License: MIT Signed-off-by: Philip Nelson <me@pnelson.ca>
Philip Nelson committed
Sep 10, 2015 at 07:50 UTC
9ce3875c068010389d7fe43ac2052f892528d601
1 file changed
+2
-2
fuse/readonly/ipfs_test.go
+2
-2
@@ -136,7 +136,7 @@ func TestIpfsStressRead(t *testing.T) {
136
db := uio.NewDirectory(nd.DAG)
137
for j := 0; j < 1+rand.Intn(10); j++ {
138
name := fmt.Sprintf("child%d", j)
139
- err := db.AddChild(name, ks[rand.Intn(len(ks))])
139
+ err := db.AddChild(nd.Context(), name, ks[rand.Intn(len(ks))])
140
if err != nil {
141
t.Fatal(err)
142
}
@@ -204,7 +204,7 @@ func TestIpfsBasicDirRead(t *testing.T) {
204
205
// Make a directory and put that file in it
206
db := uio.NewDirectory(nd.DAG)
207
- err = db.AddChild("actual", k)
207
+ err = db.AddChild(nd.Context(), "actual", k)
208
if err != nil {
209
t.Fatal(err)
210
}