Fix for travis fail - 688972b98c

This commit is contained in:
Jithin James 2017-10-17 15:52:06 +05:30
parent 688972b98c
commit b9a543a53c

View File

@ -77,7 +77,7 @@ func TestDebugPrintRoutes(t *testing.T) {
debugPrintRoute("GET", "/path/to/route/:param", HandlersChain{func(c *Context) {}, handlerNameTest, handlerNameTest1})
s = w.String()
lines = strings.Split(s, "\n")
assert.Regexp(t, `^\[GIN-debug\] GET /path/to/route/:param --> (.*/vendor/)?github.com/gin-gonic/gin.handlerNameTest \(3 handlers\)\n$`, lines[len(lines)-2]+"\n")
assert.Regexp(t, `^\[GIN-debug\] GET /path/to/route/:param --> (.*/vendor/)?github.com/gin-gonic/gin.handlerNameTest1 \(3 handlers\)\n$`, lines[len(lines)-2]+"\n")
}
func TestDebugPrintLoadTemplate(t *testing.T) {