Skip to content

Commit

Permalink
fix unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
jarily committed Jun 24, 2024
1 parent 40db192 commit 6c983d6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ego_function_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,8 @@ func Test_initSysLogger(t *testing.T) {

t.Run("修改EgoLogger本身,ego中的logger同步生效", func(t *testing.T) {
econf.Reset()
// 先还原一下默认的EgoLogger
elog.EgoLogger = elog.DefaultContainer().Build(elog.WithFileName(elog.EgoLoggerName))
var (
app = &Ego{
logger: elog.EgoLogger, // logger与ego.New()方法中保持一致
Expand Down

0 comments on commit 6c983d6

Please sign in to comment.