]> Cypherpunks repositories - gostls13.git/commit
net/http: deflake TestResponseControllerSetFutureWriteDeadline
authorDamien Neil <dneil@google.com>
Thu, 17 Nov 2022 19:09:11 +0000 (11:09 -0800)
committerGopher Robot <gobot@golang.org>
Thu, 17 Nov 2022 19:25:42 +0000 (19:25 +0000)
commitb74aaa1427916368c5a1e0ba156f461b2a0f411a
treeab266008e64c7bb8eb7cd257d8b078d5e4e964b1
parent5f7abeca5a584a847033bbd1bc1123872bb0925e
net/http: deflake TestResponseControllerSetFutureWriteDeadline

Don't set the server's write deadline until after the client has
read the response headers, avoiding test failures if the deadline
expires before or while writing headers.

Fixes #56807.

Change-Id: I5f80c108b360d030132a13661774a30fac453856
Reviewed-on: https://go-review.googlesource.com/c/go/+/451715
Auto-Submit: Damien Neil <dneil@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Damien Neil <dneil@google.com>
Reviewed-by: Bryan Mills <bcmills@google.com>
src/net/http/responsecontroller_test.go