]> Cypherpunks repositories - gostls13.git/commit
net/http: fix test TestServeMuxHandlerRedirects
authorShenghou Ma <minux@golang.org>
Tue, 29 Nov 2016 01:31:18 +0000 (20:31 -0500)
committerBrad Fitzpatrick <bradfitz@golang.org>
Wed, 30 Nov 2016 03:36:02 +0000 (03:36 +0000)
commit406d2fa2f3034974e94620bacf6c09bcabaf85fd
treea99082c186dc9ea9ffc00c48f412c58f4bcdca42
parenta745dc930e00a026aea6449ec0e790152eb4bcd4
net/http: fix test TestServeMuxHandlerRedirects

The code was intended to test that mux handler should redirect at
most once, but the added loop condition defeated that. Remove the
loop condition and document the intention better.

Fixes #18068.

Change-Id: I2a4ea041eae27168b45a09aa46e740ac03921594
Reviewed-on: https://go-review.googlesource.com/33654
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
src/net/http/serve_test.go