fix: error from golangci-lint tool (#623)

This commit is contained in:
Bo-Yi Wu
2021-08-03 14:44:00 +08:00
committed by GitHub
parent 349c0c8c1d
commit 0a8d801380
15 changed files with 74 additions and 164 deletions

View File

@@ -1,6 +1,7 @@
package status
import (
"os"
"testing"
"time"
@@ -10,7 +11,7 @@ import (
)
func TestMain(m *testing.M) {
m.Run()
os.Exit(m.Run())
}
func TestStorageDriverExist(t *testing.T) {
@@ -76,7 +77,7 @@ func TestStatForRedisEngine(t *testing.T) {
err := InitAppStatus(cfg)
assert.Nil(t, err)
StatStorage.Init()
assert.Nil(t, StatStorage.Init())
StatStorage.Reset()
StatStorage.AddTotalCount(100)