add lock function

This commit is contained in:
liwei 2021-08-11 10:54:10 +08:00
parent ca79890a05
commit b9589019f7
1 changed files with 1 additions and 2 deletions

View File

@ -132,8 +132,7 @@ func TestLogger_concurrentLock(t *testing.T) {
}()
}
}()
c := make(chan int)
<-c
time.Sleep(1 * time.Minute)
}
var traceLock = &sync.Mutex{}