@ -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))
@ -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")