]> Cypherpunks.ru repositories - gostls13.git/commit
net/http: deflake TestRequestBodyLimit
authorDamien Neil <dneil@google.com>
Thu, 24 Aug 2023 17:58:51 +0000 (10:58 -0700)
committerDamien Neil <dneil@google.com>
Fri, 25 Aug 2023 16:50:37 +0000 (16:50 +0000)
commit92bbecc518533867a9bb381e261196111db2dd80
treecbd9b991615c87f7871ae5835abc3330f4953cd3
parent611c3af30d5c7d17c8da3712cd23152c7f0f52ef
net/http: deflake TestRequestBodyLimit

This test can return with a Transport still processing
an in-flight request, resulting in a test failure due
to the leaked Transport.

Avoid this by waiting for the Transport to close the
request body before returning.

Fixes #60264

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