net: more fiddling with the udp test.

i don't know why the timeout needs
  to be so big.

R=r
https://golang.org/cl/165063
This commit is contained in:
Russ Cox 2009-12-04 18:34:45 -08:00
parent d539d079ad
commit 2807621d01

View file

@ -61,7 +61,7 @@ func connect(t *testing.T, network, addr string, isEmpty bool) {
if err != nil {
t.Fatalf("net.Dial(%q, %q, %q) = _, %v", network, laddr, addr, err)
}
fd.SetReadTimeout(10e6); // 10ms
fd.SetReadTimeout(1e9); // 1s
var b []byte;
if !isEmpty {