]> Cypherpunks repositories - gostls13.git/commit
net: deflake listener tests
authorMikio Hara <mikioh.mikioh@gmail.com>
Thu, 30 Apr 2015 22:49:12 +0000 (07:49 +0900)
committerMikio Hara <mikioh.mikioh@gmail.com>
Wed, 6 May 2015 07:46:37 +0000 (07:46 +0000)
commit9b184fd23c47a8eae3587b247d05b25f8cab04ed
treeb829d1b4d502b594c5dc7107df4bc16ace110173
parent64d9ab524de3f07e96cda88e3ef296291ee6dfc7
net: deflake listener tests

This change makes TestDualStack{TCP,UDP}Listener work more properly by
attempting to book an available service port before testing.

Also simplifies error messages in tests.

Fixes #5001.

Change-Id: If13b0d0039878c9bd32061a0440664e4fa7abaf7
Reviewed-on: https://go-review.googlesource.com/9661
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/net/dial_test.go
src/net/listen_test.go
src/net/mockserver_test.go