integration: Ensure that proxy does not forward bad request

This commit is contained in:
Tatsuhiro Tsujikawa 2015-01-20 22:31:21 +09:00
parent 91151f1f56
commit 506177e1bd
1 changed files with 6 additions and 2 deletions

View File

@ -240,7 +240,9 @@ func TestH2H1ChunkedRequestBody(t *testing.T) {
}
func TestH2H1DuplicateRequestCL(t *testing.T) {
st := newServerTester(nil, t, noopHandler)
st := newServerTester(nil, t, func(w http.ResponseWriter, r *http.Request) {
t.Errorf("server should not forward bad request")
})
defer st.Close()
res, err := st.http2(requestParam{
@ -260,7 +262,9 @@ func TestH2H1DuplicateRequestCL(t *testing.T) {
}
func TestH2H1InvalidRequestCL(t *testing.T) {
st := newServerTester(nil, t, noopHandler)
st := newServerTester(nil, t, func(w http.ResponseWriter, r *http.Request) {
t.Errorf("server should not forward bad request")
})
defer st.Close()
res, err := st.http2(requestParam{