From b9589019f7a8043ce493f563c512a7e6b3667f26 Mon Sep 17 00:00:00 2001 From: liwei Date: Wed, 11 Aug 2021 10:54:10 +0800 Subject: [PATCH] add lock function --- logger_test.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/logger_test.go b/logger_test.go index 0b3dfba..ffd92e2 100644 --- a/logger_test.go +++ b/logger_test.go @@ -132,8 +132,7 @@ func TestLogger_concurrentLock(t *testing.T) { }() } }() - c := make(chan int) - <-c + time.Sleep(1 * time.Minute) } var traceLock = &sync.Mutex{}