diff --git a/src/sync/cond_test.go b/src/sync/cond_test.go index 859cae59bc..aa134e3c1d 100644 --- a/src/sync/cond_test.go +++ b/src/sync/cond_test.go @@ -9,7 +9,6 @@ import ( "runtime" . "sync" "testing" - "time" ) func TestCondSignal(t *testing.T) { @@ -228,11 +227,7 @@ func TestCondSignalStealing(t *testing.T) { }() // Check that the first waiter does get signaled. - select { - case <-ch: - case <-time.After(2 * time.Second): - t.Fatalf("First waiter didn't get broadcast.") - } + <-ch // Release the second waiter in case it didn't get the // broadcast.