From 2310ecdf9236f778742df97d38818ceac6a65781 Mon Sep 17 00:00:00 2001 From: Raynos Date: Fri, 7 Apr 2017 17:16:14 -0700 Subject: [PATCH] tests: ensure we cover ReadAndUnmarshal code path --- test/endpoints/bar/bar_normal_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/endpoints/bar/bar_normal_test.go b/test/endpoints/bar/bar_normal_test.go index 3dc210e08..be397b217 100644 --- a/test/endpoints/bar/bar_normal_test.go +++ b/test/endpoints/bar/bar_normal_test.go @@ -107,7 +107,7 @@ func TestBarNormalMalformedClientResponseReadAll(t *testing.T) { gateway.HTTPBackends()["bar"].Server.ConnState = func(conn net.Conn, state http.ConnState) { _, _ = conn.Write([]byte( - "HTTP/1.1 500 Internal Server Error\n" + + "HTTP/1.1 200 OK\n" + "Content-Length: 12\n" + "\n" + "abc\n"))