diff --git a/gin_test.go b/gin_test.go index 0cd5bf1..7425cc2 100644 --- a/gin_test.go +++ b/gin_test.go @@ -10,6 +10,10 @@ import ( "testing" ) +func init() { + SetMode(TestMode) +} + func PerformRequest(r http.Handler, method, path string) *httptest.ResponseRecorder { req, _ := http.NewRequest(method, path, nil) w := httptest.NewRecorder()