aboutsummaryrefslogtreecommitdiff
path: root/src/sync/mutex_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/sync/mutex_test.go')
-rw-r--r--src/sync/mutex_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sync/mutex_test.go b/src/sync/mutex_test.go
index e61a853642..98c1bf2a5f 100644
--- a/src/sync/mutex_test.go
+++ b/src/sync/mutex_test.go
@@ -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)