]> Cypherpunks repositories - gostls13.git/commit
net/http: deflake TestRetryIdempotentRequestsOnError
authorBrad Fitzpatrick <bradfitz@golang.org>
Tue, 10 Jan 2017 23:42:06 +0000 (23:42 +0000)
committerBrad Fitzpatrick <bradfitz@golang.org>
Wed, 11 Jan 2017 01:39:54 +0000 (01:39 +0000)
commitac05542985ab2fac15f2a2c7b62afe29bdb15e5c
tree4a65bb040c1103ca9cfbb952f0113f816f6cdba8
parentb842c9aac79318cfc66ab21efdb640f28e8bc5be
net/http: deflake TestRetryIdempotentRequestsOnError

The test was previously an integration test, relying on luck and many
goroutines and lots of time to hit the path to be tested.

Instead, rewrite the test to exactly hit the path to be tested, in one
try, in one goroutine.

Fixes #18205

Change-Id: I63cd513316344bfd7375dcc452c1c396dec0e49f
Reviewed-on: https://go-review.googlesource.com/35107
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/net/http/transport_test.go