diff --git a/main_test.go b/main_test.go index 0d16f5e..1d27613 100644 --- a/main_test.go +++ b/main_test.go @@ -5,6 +5,7 @@ import ( "io/ioutil" "net/http" "net/http/httptest" + "os" "regexp" "strconv" "testing" @@ -17,7 +18,7 @@ var srv *httptest.Server func TestMain(m *testing.M) { srv = httptest.NewServer(http.HandlerFunc(probeHandler)) defer srv.Close() - m.Run() + os.Exit(m.Run()) } func TestSuccessQueries(t *testing.T) {