fix: logx disable not working in some cases (#2306)
* fix: logx disable not working in some cases * fix: test fail
This commit is contained in:
@@ -599,6 +599,7 @@ func TestDisableStat(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestSetWriter(t *testing.T) {
|
||||
atomic.StoreUint32(&disableLog, 0)
|
||||
Reset()
|
||||
SetWriter(nopWriter{})
|
||||
assert.NotNil(t, writer.Load())
|
||||
|
||||
Reference in New Issue
Block a user