Fixed travis build issues and test case validation errors

This commit is contained in:
Jithin James 2017-10-17 14:19:23 +05:30
parent 22fa468657
commit 1e8fe69668

View File

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