]> Cypherpunks repositories - gostls13.git/commit
net/http: allow nothingWrittenError in TestTransportPersistConnReadLoopEOF
authorMichael Pratt <mpratt@google.com>
Thu, 25 Jan 2024 20:39:09 +0000 (15:39 -0500)
committerGopher Robot <gobot@golang.org>
Mon, 29 Jan 2024 22:31:23 +0000 (22:31 +0000)
commit3207f038ac10f775c569e12450660c764a3c56af
treeb77a50ed4d7f7d11c5b8d9e445070508217c836c
parent47d240ccbb40425b49f14e21145d01dda542a21c
net/http: allow nothingWrittenError in TestTransportPersistConnReadLoopEOF

Flakes in #64317 are a result of a race where the server shutdown
schedules ahead of the client read loop. Normal network latency usually
hides this, but wasm's net_fake.go has very low latency.

Explicitly allow the results of this race in the test.

For #64317.

Change-Id: I9c2572fb44643762fe3f3d7cb133d7e7a8a47881
Reviewed-on: https://go-review.googlesource.com/c/go/+/558595
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Damien Neil <dneil@google.com>
Auto-Submit: Michael Pratt <mpratt@google.com>
src/net/http/transport_internal_test.go