From e871dfbbcef5423fdc6daf0ab374367472b6f265 Mon Sep 17 00:00:00 2001 From: Matt Joiner Date: Wed, 3 Jun 2015 00:14:55 +1000 Subject: [PATCH] torrentfs: Fix bad import --- fs/torrentfs_test.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/fs/torrentfs_test.go b/fs/torrentfs_test.go index 20bea21b..b77dab2f 100644 --- a/fs/torrentfs_test.go +++ b/fs/torrentfs_test.go @@ -17,7 +17,6 @@ import ( "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 @@ func TestDownloadOnDemand(t *testing.T) { 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 -- 2.48.1