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>
This commit is contained in:
张嵩 2017-04-20 23:47:07 -07:00 committed by Brad Fitzpatrick
parent a73a330cdf
commit 26536b2f32

View file

@ -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)