decouple HTTP tests from API usage

This commit is contained in:
Jimmy Zelinskie
2015-10-11 02:33:05 -04:00
parent 1764fa4a2d
commit 7cfa862f2c
3 changed files with 39 additions and 36 deletions

View File

@@ -13,11 +13,10 @@ import (
"testing"
"github.com/chihaya/bencode"
"github.com/chihaya/chihaya/config"
)
func TestPublicScrape(t *testing.T) {
srv, err := setupTracker(&config.DefaultConfig)
srv, err := setupTracker(nil, nil)
if err != nil {
t.Fatal(err)
}