Skip to content

Commit

Permalink
fixed TestMain
Browse files Browse the repository at this point in the history
  • Loading branch information
caarlos0 committed Sep 9, 2017
1 parent 4415049 commit 2889605
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"io/ioutil"
"net/http"
"net/http/httptest"
"os"
"regexp"
"strconv"
"testing"
Expand All @@ -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) {
Expand Down

0 comments on commit 2889605

Please sign in to comment.