1
0
Fork 0

Fix test because of how redirect actually works

master
Philip O Toole 8 years ago
parent 2b6332a210
commit 0dcdc10f93

@ -134,7 +134,7 @@ func Test_ClientRegisterRequestRedirectOK(t *testing.T) {
})) }))
defer ts1.Close() defer ts1.Close()
ts2 := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { ts2 := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
http.Redirect(w, r, ts1.URL, http.StatusMovedPermanently) http.Redirect(w, r, ts1.URL + "/1234", http.StatusMovedPermanently)
})) }))
c := New(ts2.URL) c := New(ts2.URL)

Loading…
Cancel
Save