From 506177e1bd1a873735d34bd68ade62abfc37f6b1 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Tue, 20 Jan 2015 22:31:21 +0900 Subject: [PATCH] integration: Ensure that proxy does not forward bad request --- integration-tests/nghttpx_test.go | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/integration-tests/nghttpx_test.go b/integration-tests/nghttpx_test.go index 187a6974..c9157473 100644 --- a/integration-tests/nghttpx_test.go +++ b/integration-tests/nghttpx_test.go @@ -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{