Skip to content

Commit

Permalink
Remove unused tracker.defaultClient
Browse files Browse the repository at this point in the history
  • Loading branch information
anacrolix committed Oct 18, 2018
1 parent ad0c33a commit d953ebf
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions tracker/tracker_test.go
Original file line number Diff line number Diff line change
@@ -1,26 +1,11 @@
package tracker

import (
"crypto/tls"
"net"
"net/http"
"testing"
"time"

"github.com/stretchr/testify/require"
)

var defaultClient = &http.Client{
Timeout: time.Second * 15,
Transport: &http.Transport{
Dial: (&net.Dialer{
Timeout: 15 * time.Second,
}).Dial,
TLSHandshakeTimeout: 15 * time.Second,
TLSClientConfig: &tls.Config{InsecureSkipVerify: true},
},
}

func TestUnsupportedTrackerScheme(t *testing.T) {
t.Parallel()
_, err := Announce{TrackerUrl: "lol://tracker.openbittorrent.com:80/announce"}.Do()
Expand Down

0 comments on commit d953ebf

Please sign in to comment.