diff --git a/async/multilock_test.go b/async/multilock_test.go index 4c71a9860..09c7416fa 100644 --- a/async/multilock_test.go +++ b/async/multilock_test.go @@ -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()