]> Cypherpunks repositories - gostls13.git/commit
runtime/race: improve TestNoRaceIOHttp test
authorDmitry Vyukov <dvyukov@google.com>
Fri, 26 Feb 2016 12:02:42 +0000 (13:02 +0100)
committerDmitry Vyukov <dvyukov@google.com>
Wed, 27 Apr 2016 08:08:18 +0000 (08:08 +0000)
commit6dfba5c7ce867583cbcea9da09dceacd2633bacc
tree92fe2b1e5bbb380349ed2263e826475d25f5a317
parent102cf2ae0321775eef2d36d7c4258b740fe92458
runtime/race: improve TestNoRaceIOHttp test

TestNoRaceIOHttp does all kinds of bad things:
1. Binds to a fixed port, so concurrent tests fail.
2. Registers HTTP handler multiple times, so repeated tests fail.
3. Relies on sleep to wait for listen.

Fix all of that.

Change-Id: I1210b7797ef5e92465b37dc407246d92a2a24fe8
Reviewed-on: https://go-review.googlesource.com/19953
Run-TryBot: Dmitry Vyukov <dvyukov@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/runtime/race/testdata/io_test.go