Skip to content

Commit

Permalink
Init common config in util_test.go
Browse files Browse the repository at this point in the history
  • Loading branch information
kabicin committed Nov 18, 2024
1 parent 81518f1 commit eb57e85
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions utils/utils_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,12 @@ type Test struct {
actual interface{}
}

func TestMain(m *testing.M) {
common.Config = common.DefaultOpConfig()
rc := m.Run()
os.Exit(rc)
}

func TestCustomizeRoute(t *testing.T) {
logger := zap.New()
logf.SetLogger(logger)
Expand Down

0 comments on commit eb57e85

Please sign in to comment.