fs/torrentfs_test.go | 5 ++--- diff --git a/fs/torrentfs_test.go b/fs/torrentfs_test.go index 20bea21b74ba1db892305f95fe5377f4803ef340..b77dab2fefd56b0819cbeee11d7a811cc80adf7a 100644 --- a/fs/torrentfs_test.go +++ b/fs/torrentfs_test.go @@ -17,7 +17,6 @@ "time" "bazil.org/fuse" fusefs "bazil.org/fuse/fs" - "github.com/gorilla/context" netContext "golang.org/x/net/context" "github.com/anacrolix/torrent" @@ -233,14 +232,14 @@ }()}) fs := New(leecher) defer fs.Destroy() root, _ := fs.Root() - node, _ := root.(fusefs.NodeStringLookuper).Lookup(context.Background(), "greeting") + node, _ := root.(fusefs.NodeStringLookuper).Lookup(netContext.Background(), "greeting") var attr fuse.Attr node.Attr(netContext.Background(), &attr) size := attr.Size resp := &fuse.ReadResponse{ Data: make([]byte, size), } - node.(fusefs.HandleReader).Read(context.Background(), &fuse.ReadRequest{ + node.(fusefs.HandleReader).Read(netContext.Background(), &fuse.ReadRequest{ Size: int(size), }, resp) content := resp.Data