]> Cypherpunks repositories - gostls13.git/commitdiff
net: increase TestNotTemporaryRead server sleep
authorClément Chigot <clement.chigot@atos.net>
Wed, 16 Jan 2019 08:03:57 +0000 (09:03 +0100)
committerIan Lance Taylor <iant@golang.org>
Wed, 16 Jan 2019 15:16:12 +0000 (15:16 +0000)
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 <iant@golang.org>
src/net/net_test.go

index 692f269e0c29b87af044b62afad6e285d1cf93d8..2b5845bb1580f3f5f4fdef7d24ef45dc4c8bba5f 100644 (file)
@@ -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
        }