We don't need this as a global
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Hamcha 2019-06-28 22:45:39 +02:00
parent d2a2e4526b
commit 3184ce476a
Signed by: hamcha
GPG key ID: A40413D21021EAEE

View file

@ -172,10 +172,8 @@ func TestMalformedJSONLoad(t *testing.T) {
}
}
var testServer *httptest.Server
func TestMain(m *testing.M) {
testServer = httptest.NewServer(http.HandlerFunc(func(res http.ResponseWriter, req *http.Request) {
testServer := httptest.NewServer(http.HandlerFunc(func(res http.ResponseWriter, req *http.Request) {
switch req.URL.Path {
case "/nopenope.json":
// 404