]> Cypherpunks repositories - gostls13.git/commitdiff
net: more fiddling with the udp test.
authorRuss Cox <rsc@golang.org>
Sat, 5 Dec 2009 02:34:45 +0000 (18:34 -0800)
committerRuss Cox <rsc@golang.org>
Sat, 5 Dec 2009 02:34:45 +0000 (18:34 -0800)
  i don't know why the timeout needs
  to be so big.

R=r
https://golang.org/cl/165063

src/pkg/net/server_test.go

index e1301ceb921bbb4213385b2aac6b6218ce6596ae..4041081067e4afee2b9cfe6f1c63e39b0aaa9362 100644 (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 {