You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tailscale/net
Josh Bleecher Snyder e16cb523aa net/nettest: deflake TestPipeTimeout
The block-write and block-read tests are both flaky,
because each assumes it can get a normal read/write
completed within 10ms. This isn’t always true.

We can’t increase the timeouts, because that slows down the test.
However, we don’t need to issue a regular read/write for this test.
The immediately preceding tests already test this code,
using a far more generous timeout.

Remove the extraneous read/write.

This drops the failure rate from 1 per 20,000 to undetectable
on my machine.

While we’re here, fix a typo in a debug print statement.

Signed-off-by: Josh Bleecher Snyder <josh@tailscale.com>
3 years ago
..
dns tailcfg, ipn/ipnlocal, net/dns: forward exit node DNS on Unix to system DNS 3 years ago
dnscache net/{dnscache,interfaces}: use netaddr.IP.IsPrivate, delete copied code 3 years ago
dnsfallback net/netns: thread logf into control functions 3 years ago
flowtrack all: use testingutil.MinAllocsPerRun 3 years ago
interfaces wgengine/monitor: ignore adding/removing uninteresting IPs 3 years ago
netcheck net/netns: thread logf into control functions 3 years ago
netknob all: disable TCP keep-alives on iOS/Android 3 years ago
netns net/netns: thread logf into control functions 3 years ago
netstat all: gofmt with Go 1.17 3 years ago
nettest net/nettest: deflake TestPipeTimeout 3 years ago
packet all: use testingutil.MinAllocsPerRun 3 years ago
portmapper net/portmapper: improve handling of UPnP parse errors 3 years ago
proxymux net/proxymux: add a listener mux that can run SOCKS and HTTP on a single socket. 3 years ago
socks5 net/socks5/tssocks, wgengine: permit SOCKS through subnet routers/exit nodes 3 years ago
speedtest all: fix spelling mistakes 3 years ago
stun all: gofmt with Go 1.17 3 years ago
tlsdial net/tlsdial: add forgotten test file for go mod tidy 3 years ago
tsaddr ipn/ipnlocal: for IPv6-only nodes, publish IPv6 MagicDNS records of peers 3 years ago
tshttpproxy net/tshttpproxy: use correct size for Windows BOOL argument 3 years ago
tstun net/tstun: rate limit "self disco out packet" logging 3 years ago