]> Sergey Matveev's repositories - btrtrc.git/commitdiff
torrentfs: Fix bad import
authorMatt Joiner <anacrolix@gmail.com>
Tue, 2 Jun 2015 14:14:55 +0000 (00:14 +1000)
committerMatt Joiner <anacrolix@gmail.com>
Tue, 2 Jun 2015 14:14:55 +0000 (00:14 +1000)
fs/torrentfs_test.go

index 20bea21b74ba1db892305f95fe5377f4803ef340..b77dab2fefd56b0819cbeee11d7a811cc80adf7a 100644 (file)
@@ -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