From 6c983d685564f1d41f2396110096755751a9c0e6 Mon Sep 17 00:00:00 2001 From: Jarily <11690345@qq.com> Date: Mon, 24 Jun 2024 10:22:03 +0800 Subject: [PATCH] fix unit test --- ego_function_test.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ego_function_test.go b/ego_function_test.go index 3fac2a5..7ed6430 100644 --- a/ego_function_test.go +++ b/ego_function_test.go @@ -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()方法中保持一致