From 26536b2f327781ad76afe22109b94b7b193407bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E5=B5=A9?= Date: Thu, 20 Apr 2017 23:47:07 -0700 Subject: [PATCH] test/chan: add missing flag.Parse in doubleselect.go doubleselect.go defines a flag to control the number of iterations, but never called flag.Parse so it was unusable. Change-Id: Ib5d0c7119e7f7c9a808dcc02d0d9cc6ba5bbc16e Reviewed-on: https://go-review.googlesource.com/41299 Reviewed-by: Brad Fitzpatrick --- test/chan/doubleselect.go | 1 + 1 file changed, 1 insertion(+) diff --git a/test/chan/doubleselect.go b/test/chan/doubleselect.go index 6be3faf55a..ff69dbe5db 100644 --- a/test/chan/doubleselect.go +++ b/test/chan/doubleselect.go @@ -61,6 +61,7 @@ func recver(in <-chan int) { func main() { runtime.GOMAXPROCS(2) + flag.Parse() c1 := make(chan int) c2 := make(chan int) c3 := make(chan int)