Skip to content

Commit 0456036

Browse files
Clément Chigotianlancetaylor
Clément Chigot
authored andcommitted
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 <[email protected]>
1 parent 34817dd commit 0456036

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/net/net_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -529,7 +529,7 @@ func TestNotTemporaryRead(t *testing.T) {
529529
server := func(cs *TCPConn) error {
530530
cs.SetLinger(0)
531531
// Give the client time to get stuck in a Read.
532-
time.Sleep(20 * time.Millisecond)
532+
time.Sleep(50 * time.Millisecond)
533533
cs.Close()
534534
return nil
535535
}

0 commit comments

Comments
 (0)