From: Clément Chigot Date: Wed, 16 Jan 2019 08:03:57 +0000 (+0100) Subject: net: increase TestNotTemporaryRead server sleep X-Git-Tag: go1.12rc1~69 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=0456036e28b718d215f49abe83d3c49101f8a4c7;p=gostls13.git net: increase TestNotTemporaryRead server sleep On aix/ppc64, if the server closes before the client calls Accept, this test will fail. Increasing the time before the server closes should resolve this timeout. Updates #29685 Change-Id: Iebb849d694fc9c37cf216ce1f0b8741249b98016 Reviewed-on: https://go-review.googlesource.com/c/158038 Reviewed-by: Ian Lance Taylor --- diff --git a/src/net/net_test.go b/src/net/net_test.go index 692f269e0c..2b5845bb15 100644 --- a/src/net/net_test.go +++ b/src/net/net_test.go @@ -529,7 +529,7 @@ func TestNotTemporaryRead(t *testing.T) { server := func(cs *TCPConn) error { cs.SetLinger(0) // Give the client time to get stuck in a Read. - time.Sleep(20 * time.Millisecond) + time.Sleep(50 * time.Millisecond) cs.Close() return nil }