Commit 26536b2f authored by 张嵩's avatar 张嵩 Committed by Brad Fitzpatrick

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/41299Reviewed-by: default avatarBrad Fitzpatrick <bradfitz@golang.org>
parent a73a330c
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment