fix test and build
This commit is contained in:
+2
-1
@@ -3,6 +3,7 @@ package gin
|
||||
import (
|
||||
"html/template"
|
||||
"net/http"
|
||||
"os"
|
||||
"testing"
|
||||
)
|
||||
|
||||
@@ -36,7 +37,7 @@ func BenchmarkManyHandlers(B *testing.B) {
|
||||
}
|
||||
|
||||
func Benchmark5Params(B *testing.B) {
|
||||
DefaultWriter = newMockWriter()
|
||||
DefaultWriter = os.Stdout
|
||||
router := New()
|
||||
router.Use(func(c *Context) {})
|
||||
router.GET("/param/:param1/:params2/:param3/:param4/:param5", func(c *Context) {})
|
||||
|
||||
Reference in New Issue
Block a user