Upstream sync
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
package controllers
|
||||
package controllers_test
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
@@ -13,6 +13,8 @@ import (
|
||||
"github.com/stretchr/testify/assert"
|
||||
|
||||
"gitlab.com/pactual1/backend/config"
|
||||
"gitlab.com/pactual1/backend/controllers"
|
||||
"gitlab.com/pactual1/backend/routes"
|
||||
"gitlab.com/pactual1/backend/shared"
|
||||
)
|
||||
|
||||
@@ -29,7 +31,8 @@ func runTestServer() *httptest.Server {
|
||||
|
||||
shared.Init()
|
||||
r := gin.Default()
|
||||
r.POST("/device_info", SaveDeviceInfo)
|
||||
r.POST("/device_info", controllers.SaveDeviceInfo)
|
||||
routes.RegisterPublicRoutes(r)
|
||||
return httptest.NewServer(r)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user