diff options
Diffstat (limited to 'testrig')
-rw-r--r-- | testrig/gin.go | 1 | ||||
-rw-r--r-- | testrig/router.go | 1 |
2 files changed, 0 insertions, 2 deletions
diff --git a/testrig/gin.go b/testrig/gin.go index c14f79984..cd32654e8 100644 --- a/testrig/gin.go +++ b/testrig/gin.go @@ -27,7 +27,6 @@ import ( // CreateGinTextContext creates a new gin.Context suitable for a test, with an instantiated gin.Engine. func CreateGinTestContext(rw http.ResponseWriter, r *http.Request) (*gin.Context, *gin.Engine) { ctx, eng := gin.CreateTestContext(rw) - router.LoadTemplateFunctions(eng) if err := router.LoadTemplates(eng); err != nil { panic(err) } diff --git a/testrig/router.go b/testrig/router.go index 64b3842de..20317dae6 100644 --- a/testrig/router.go +++ b/testrig/router.go @@ -59,6 +59,5 @@ func NewTestRouter(db db.DB) *router.Router { // ConfigureTemplatesWithGin will panic on any errors related to template loading during tests func ConfigureTemplatesWithGin(engine *gin.Engine, templatePath string) { - router.LoadTemplateFunctions(engine) engine.LoadHTMLGlob(filepath.Join(templatePath, "*")) } |