From 94f2f3f7eba02686e60f788d2766ee5003ab17a2 Mon Sep 17 00:00:00 2001 From: Manu Mtz-Almeida Date: Thu, 21 Aug 2014 01:01:42 +0200 Subject: [PATCH] Using test mode --- gin_test.go | 4 ++++ 1 file changed, 4 insertions(+) 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()