]> Cypherpunks repositories - gostls13.git/commit
net: deflake TestPacketConn, increase timeout
authorBrad Fitzpatrick <bradfitz@golang.org>
Sun, 15 Feb 2015 17:35:18 +0000 (09:35 -0800)
committerBrad Fitzpatrick <bradfitz@golang.org>
Sun, 1 Mar 2015 22:55:34 +0000 (22:55 +0000)
commitaedee3087008fd5493976a3c9e732f2fa5deb883
tree0c16467e66f7269ee437b719cd45242085635f69
parentcf14e0e333c854c9ee4730c7e868ffd8424b95f4
net: deflake TestPacketConn, increase timeout

Tests sometimes failed with:

ok   mime/internal/quotedprintable      0.606s
ok   mime/multipart                     0.819s
--- FAIL: TestPacketConn (0.10s)
    packetconn_test.go:96: PacketConn.ReadFrom failed: WSARecvFrom udp 127.0.0.1:64156: i/o timeout
FAIL
FAIL    net     3.602s
ok      net/http        4.618s
ok      net/http/cgi    0.576s

Theory: 100 ms is too short. Small timer granularity on Wnidows, or an
allocation in the middle causing a GC sometimes?

In any case, increase it to 500 ms.

Change-Id: I48cc4d600eb168db9f85c0fd05335dd630254c3c
Reviewed-on: https://go-review.googlesource.com/4922
Reviewed-by: Alex Brainman <alex.brainman@gmail.com>
src/net/packetconn_test.go