Disable IP block list in some tests

This commit is contained in:
Matt Joiner 2014-12-01 03:28:39 -06:00
parent db0232e03f
commit 6d2f1c8cd7
1 changed files with 2 additions and 0 deletions

View File

@ -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)
})