]> Cypherpunks repositories - gostls13.git/commitdiff
net: fix timeout test bug
authorRuss Cox <rsc@golang.org>
Wed, 6 Jan 2016 15:53:16 +0000 (10:53 -0500)
committerRuss Cox <rsc@golang.org>
Wed, 6 Jan 2016 17:59:46 +0000 (17:59 +0000)
This was supposed to be in CL 18205 but I submitted via the web
instead of from my computer, so it got lost.
May deflake some things.

Change-Id: I880fb74b5943b8a17f952a82639c60126701187a
Reviewed-on: https://go-review.googlesource.com/18259
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/net/timeout_test.go

index 5832306591eff304cac978527493bfe6d96bb57b..98e3164fb9897a12fc022be72cc2c955bdb770c2 100644 (file)
@@ -996,7 +996,6 @@ func TestReadWriteDeadlineRace(t *testing.T) {
        if testing.Short() {
                N = 50
        }
-       defer runtime.GOMAXPROCS(runtime.GOMAXPROCS(4))
 
        ln, err := newLocalListener("tcp")
        if err != nil {