Browse Source

fix lint

pull/331/head
yedf2 4 years ago
parent
commit
d4d7a55100
  1. 1
      test/busi/base_http.go
  2. 6
      test/main_test.go

1
test/busi/base_http.go

@ -72,6 +72,7 @@ func BaseAppStartup() *gin.Engine {
return app
}
// RunHTTP will run http server
func RunHTTP(app *gin.Engine) {
logger.Debugf("Starting busi at: %d", BusiPort)
err := app.Run(fmt.Sprintf(":%d", BusiPort))

6
test/main_test.go

@ -24,12 +24,6 @@ import (
"github.com/go-resty/resty/v2"
)
func exitIf(code int) {
if code != 0 {
os.Exit(code)
}
}
func TestMain(m *testing.M) {
config.MustLoadConfig("")
logger.InitLog("debug")

Loading…
Cancel
Save