diff --git a/core/unittest/common/http/CurlUnittest.cpp b/core/unittest/common/http/CurlUnittest.cpp index 6b40bd416e..f85bd25619 100644 --- a/core/unittest/common/http/CurlUnittest.cpp +++ b/core/unittest/common/http/CurlUnittest.cpp @@ -37,7 +37,7 @@ void CurlUnittest::TestSendHttpRequest() { = std::make_unique("GET", false, "httpstat.us", 80, "/404", "", map(), "", 10, 3); bool success = SendHttpRequest(std::move(request), res); APSARA_TEST_TRUE(success); - APSARA_TEST_EQUAL(400, res.GetStatusCode()); + APSARA_TEST_EQUAL(404, res.GetStatusCode()); } void CurlUnittest::TestCurlTLS() { @@ -70,7 +70,7 @@ void CurlUnittest::TestFollowRedirect() { "GET", false, "httpstat.us", 80, "/404", "", map(), "", 10, 3, true); bool success = SendHttpRequest(std::move(request), res); APSARA_TEST_TRUE(success); - APSARA_TEST_EQUAL(400, res.GetStatusCode()); + APSARA_TEST_EQUAL(404, res.GetStatusCode()); } UNIT_TEST_CASE(CurlUnittest, TestSendHttpRequest)