diff options
| author | Ian Lance Taylor <iant@golang.org> | 2013-12-27 08:49:47 -0800 |
|---|---|---|
| committer | Ian Lance Taylor <iant@golang.org> | 2013-12-27 08:49:47 -0800 |
| commit | 4aa521a77d1fdc36d68f9ad2591bb28addb327e5 (patch) | |
| tree | c7decf9a12db6baa1b37f48c3837786381f6bd71 /src/pkg/database/sql | |
| parent | d1a9143669633cd2f47f00b074d6534fc77e1e4d (diff) | |
| download | go-4aa521a77d1fdc36d68f9ad2591bb28addb327e5.tar.xz | |
net: use DialTimeout in TestSelfConnect
This avoids problems with systems that take a long time to
find out nothing is listening, while still testing for the
self-connect misfeature since a self-connect should be fast.
With this we may be able to remove the test for non-Linux
systems.
Tested (on GNU/Linux) by editing selfConnect in
tcpsock_posix.go to always return false and verifying that
TestSelfConnect then fails with and without this change.
Idea from Uros Bizjak.
R=golang-codereviews, bradfitz
CC=golang-codereviews
https://golang.org/cl/39200044
Diffstat (limited to 'src/pkg/database/sql')
0 files changed, 0 insertions, 0 deletions
