fix TestLockUnlock_CleansUnused (#10326)

This commit is contained in:
kmax.eth
2022-03-09 12:08:28 +08:00
committed by GitHub
parent 57a323f083
commit af2b858aa2

View File

@@ -110,9 +110,8 @@ func TestLockUnlock_CleansUnused(t *testing.T) {
lock := NewMultilock("dog", "cat", "owl")
lock.Lock()
assert.Equal(t, 3, len(locks.list))
defer lock.Unlock()
lock.Unlock()
<-time.After(100 * time.Millisecond)
wg.Done()
}()
wg.Wait()