diff --git a/mlp/set_test.go b/mlp/set_test.go index 3529409..3be64b9 100644 --- a/mlp/set_test.go +++ b/mlp/set_test.go @@ -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