[sync] TestMutexFairness: fix goroutine leak

Signed-off-by: Gaurav Singh <gaurav1086@gmail.com>
This commit is contained in:
Gaurav Singh 2020-07-16 00:04:32 -04:00
parent c5d7f2f1cb
commit a7d811a7be
1 changed files with 1 additions and 1 deletions

View File

@ -194,7 +194,7 @@ func TestMutexFairness(t *testing.T) {
}
}
}()
done := make(chan bool)
done := make(chan bool, 1)
go func() {
for i := 0; i < 10; i++ {
time.Sleep(100 * time.Microsecond)