Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
quzard committed Jan 16, 2025
1 parent 1a98338 commit 4afd1fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/unittest/common/http/CurlUnittest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ void CurlUnittest::TestSendHttpRequest() {
= std::make_unique<HttpRequest>("GET", false, "httpstat.us", 80, "/404", "", map<string, string>(), "", 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() {
Expand Down Expand Up @@ -70,7 +70,7 @@ void CurlUnittest::TestFollowRedirect() {
"GET", false, "httpstat.us", 80, "/404", "", map<string, string>(), "", 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)
Expand Down

0 comments on commit 4afd1fa

Please sign in to comment.