commit | f8ca13c3e5a85d6f9dbce499aca8006c104376ee | [log] [tgz] |
---|---|---|
author | Dmitriy Vyukov <dvyukov@google.com> | Wed Aug 14 21:53:27 2013 +0400 |
committer | Dmitriy Vyukov <dvyukov@google.com> | Wed Aug 14 21:53:27 2013 +0400 |
tree | 0a16bebde1325d018672d2e9166d374d9c68970b | |
parent | dc48e9516c3b46f061af16f595a7c7dcb46434d1 [diff] [blame] |
net: make TCPStress test shorter It timeouts on freebsd builders: http://build.golang.org/log/3d8169e13bff912bebf6fd3c54b34ad2d29a7221 but there are always runnable goroutines, which suggests that it's slowly progressing. R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/12939043
diff --git a/src/pkg/net/tcp_test.go b/src/pkg/net/tcp_test.go index 5b3d835..e3c79b2 100644 --- a/src/pkg/net/tcp_test.go +++ b/src/pkg/net/tcp_test.go
@@ -497,8 +497,11 @@ func TestTCPStress(t *testing.T) { const conns = 2 - const msgs = 1e4 const msgLen = 512 + msgs := int(1e4) + if testing.Short() { + msgs = 1e2 + } sendMsg := func(c Conn, buf []byte) bool { n, err := c.Write(buf)