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:
Kevin Wan
2022-08-27 19:24:31 +08:00
committed by GitHub
parent 5d4ae201d0
commit 2d60f0c65a
4 changed files with 6 additions and 9 deletions

View File

@@ -20,10 +20,6 @@ import (
var errDummy = errors.New("dummy")
func init() {
logx.Disable()
}
func TestKeepPromise_accept(t *testing.T) {
p := new(mockPromise)
kp := keepablePromise{

View File

@@ -17,10 +17,6 @@ import (
var errDummy = errors.New("dummy")
func init() {
logx.Disable()
}
func TestKeepPromise_accept(t *testing.T) {
p := new(mockPromise)
kp := keepablePromise{