mirror of https://github.com/golang/go.git
[sync] TestMutexFairness: fix goroutine leak
Signed-off-by: Gaurav Singh <gaurav1086@gmail.com>
This commit is contained in:
parent
c5d7f2f1cb
commit
a7d811a7be
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue