aboutsummaryrefslogtreecommitdiff
path: root/test/chan
diff options
context:
space:
mode:
author张嵩 <zs349596@gmail.com>2017-04-20 23:47:07 -0700
committerBrad Fitzpatrick <bradfitz@golang.org>2017-04-24 01:34:14 +0000
commit26536b2f327781ad76afe22109b94b7b193407bf (patch)
tree7f395512ef4943e7a745fd2dd88134bdf726e214 /test/chan
parenta73a330cdfba1d9960f4e8de3f238a00caba1a14 (diff)
downloadgo-26536b2f327781ad76afe22109b94b7b193407bf.tar.gz
go-26536b2f327781ad76afe22109b94b7b193407bf.zip
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 <bradfitz@golang.org>
Diffstat (limited to 'test/chan')
-rw-r--r--test/chan/doubleselect.go1
1 files changed, 1 insertions, 0 deletions
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)