mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-05 09:14:28 +00:00
fix TestLockUnlock_CleansUnused (#10326)
This commit is contained in:
parent
57a323f083
commit
af2b858aa2
@ -110,9 +110,8 @@ func TestLockUnlock_CleansUnused(t *testing.T) {
|
|||||||
lock := NewMultilock("dog", "cat", "owl")
|
lock := NewMultilock("dog", "cat", "owl")
|
||||||
lock.Lock()
|
lock.Lock()
|
||||||
assert.Equal(t, 3, len(locks.list))
|
assert.Equal(t, 3, len(locks.list))
|
||||||
defer lock.Unlock()
|
lock.Unlock()
|
||||||
|
|
||||||
<-time.After(100 * time.Millisecond)
|
|
||||||
wg.Done()
|
wg.Done()
|
||||||
}()
|
}()
|
||||||
wg.Wait()
|
wg.Wait()
|
||||||
|
Loading…
Reference in New Issue
Block a user