]> Cypherpunks repositories - gostls13.git/commit
net: deflake TestDialGoogle, TestResolveDialGoogle
authorMikio Hara <mikioh.mikioh@gmail.com>
Wed, 1 Apr 2015 13:18:33 +0000 (22:18 +0900)
committerMikio Hara <mikioh.mikioh@gmail.com>
Fri, 3 Apr 2015 01:50:30 +0000 (01:50 +0000)
commit21ed40c8cb4795433bda0cfb7754db5603a916f0
tree4dae7cedab10df7c0ca4bc37203ffc6db350fb42
parente8694c8196e39328d6d61b1f32228d21112008d7
net: deflake TestDialGoogle, TestResolveDialGoogle

This change makes use of the socktest package instead of the non-thread
safe variable syscall.SocketDisableIPv6 for simulating unreachable
external networks.

Also adds -ipv4 flag, -ipv6 flag already exists, as a control knob for
testing on each of IPv4-only, IPv6-only and dual IP stack kernels.

Fixes #7687.

Change-Id: I82002007fd526e8cf4de207f935e721df049a22f
Reviewed-on: https://go-review.googlesource.com/8390
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/net/dialgoogle_test.go
src/net/main_plan9_test.go
src/net/main_posix_test.go [new file with mode: 0644]
src/net/main_test.go