]> Cypherpunks repositories - gostls13.git/commitdiff
test/chan: add missing flag.Parse in doubleselect.go
author张嵩 <zs349596@gmail.com>
Fri, 21 Apr 2017 06:47:07 +0000 (23:47 -0700)
committerBrad Fitzpatrick <bradfitz@golang.org>
Mon, 24 Apr 2017 01:34:14 +0000 (01:34 +0000)
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>
test/chan/doubleselect.go

index 6be3faf55a940a30d5e5f6cc0447f52da1fdba88..ff69dbe5dbca24058e4435656f24bf12d07d3278 100644 (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)