aboutsummaryrefslogtreecommitdiff
path: root/meta/torrent_test.go
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2016-07-13 12:34:58 +0200
committerDimitri Sokolyuk <demon@dim13.org>2016-07-13 12:34:58 +0200
commitfa593f7c9f153f6ba804aa935b8f6dc72b6d9709 (patch)
treeeac8d5e44917900f6b69853b776063c669ba6a5c /meta/torrent_test.go
parentb24450910ee7f6dafd6e87a2738c0cb9113ad311 (diff)
Rename Open into New
Diffstat (limited to 'meta/torrent_test.go')
-rw-r--r--meta/torrent_test.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/meta/torrent_test.go b/meta/torrent_test.go
index c7c4ded..3dd8595 100644
--- a/meta/torrent_test.go
+++ b/meta/torrent_test.go
@@ -10,7 +10,7 @@ var tors = map[string]string{
}
func TestPieces(t *testing.T) {
- tor, err := Open("../examples/" + tors["mul"])
+ tor, err := New("../examples/" + tors["mul"])
if err != nil {
t.Error(err)
}
@@ -21,7 +21,7 @@ func TestPieces(t *testing.T) {
}
func TestPieces2(t *testing.T) {
- tor, err := Open("../examples/" + tors["mul"])
+ tor, err := New("../examples/" + tors["mul"])
if err != nil {
t.Error(err)
}
@@ -32,7 +32,7 @@ func TestPieces2(t *testing.T) {
func TestReadAt(t *testing.T) {
t.Skip()
- tor, err := Open("../examples/" + tors["bsd"])
+ tor, err := New("../examples/" + tors["bsd"])
if err != nil {
t.Error(err)
}