mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
added config to test context
This commit is contained in:
@@ -19,6 +19,7 @@ func testRouter() *gin.Engine {
|
|||||||
r.Use(func(c *gin.Context) {
|
r.Use(func(c *gin.Context) {
|
||||||
c.Set("store", &datastore.Mock{})
|
c.Set("store", &datastore.Mock{})
|
||||||
c.Set("log", logrus.WithFields(logrus.Fields{}))
|
c.Set("log", logrus.WithFields(logrus.Fields{}))
|
||||||
|
c.Set("config", &models.Config{})
|
||||||
c.Next()
|
c.Next()
|
||||||
})
|
})
|
||||||
Start(r)
|
Start(r)
|
||||||
|
|||||||
Reference in New Issue
Block a user