From: Amos Jeffries Date: Mon, 2 Nov 2009 11:25:58 +0000 (+1300) Subject: HTTP unit-test: reset test parser if protocol has changed. X-Git-Tag: SQUID_3_2_0_1~628 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3d9fc123f59864586209c3abd0d0906fba92d35f;p=thirdparty%2Fsquid.git HTTP unit-test: reset test parser if protocol has changed. --- diff --git a/src/tests/testHttpReply.cc b/src/tests/testHttpReply.cc index 55a0472ad8..b00cdb4d32 100644 --- a/src/tests/testHttpReply.cc +++ b/src/tests/testHttpReply.cc @@ -128,6 +128,8 @@ testHttpReply::testSanityCheckFirstLine() CPPUNIT_ASSERT(engine.sanityCheckStartLine(&input, hdr_len, &error) ); CPPUNIT_ASSERT_EQUAL(error, HTTP_STATUS_NONE); input.reset(); + engine.reset(); + engine.protoPrefix="HTTP/"; error = HTTP_STATUS_NONE; input.append("HTTP/1.1 200 \n\n", 15); /* real case seen */