From d4d7a551009ed1c5c545e1a8a906ba2ef651f497 Mon Sep 17 00:00:00 2001 From: yedf2 <120050102@qq.com> Date: Fri, 8 Jul 2022 18:26:30 +0800 Subject: [PATCH] fix lint --- test/busi/base_http.go | 1 + test/main_test.go | 6 ------ 2 files changed, 1 insertion(+), 6 deletions(-) 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")