diff --git a/test/busi/base_http.go b/test/busi/base_http.go index 89c33a6..94bde53 100644 --- a/test/busi/base_http.go +++ b/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)) diff --git a/test/main_test.go b/test/main_test.go index ad2c212..6c24f0c 100644 --- a/test/main_test.go +++ b/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")