From: Matt Joiner Date: Mon, 1 Dec 2014 09:28:39 +0000 (-0600) Subject: Disable IP block list in some tests X-Git-Tag: v1.0.0~1463 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=6d2f1c8cd70db4c1773ea3b17c98f75a9bd75d2d;p=btrtrc.git Disable IP block list in some tests --- diff --git a/fs/torrentfs_test.go b/fs/torrentfs_test.go index 185aa93e..372b8f29 100644 --- a/fs/torrentfs_test.go +++ b/fs/torrentfs_test.go @@ -148,6 +148,7 @@ func TestDownloadOnDemand(t *testing.T) { if err != nil { t.Fatalf("error creating seeder client: %s", err) } + seeder.SetIPBlockList(nil) defer seeder.Stop() http.HandleFunc("/seeder", func(w http.ResponseWriter, req *http.Request) { seeder.WriteStatus(w) @@ -168,6 +169,7 @@ func TestDownloadOnDemand(t *testing.T) { // PeerID: seeder.PeerID(), }) + leecher.SetIPBlockList(nil) http.HandleFunc("/leecher", func(w http.ResponseWriter, req *http.Request) { leecher.WriteStatus(w) })