Skip to content

Commit

Permalink
polish
Browse files Browse the repository at this point in the history
  • Loading branch information
henryzhx8 committed Dec 28, 2024
1 parent 9d61d3e commit b916dd7
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions core/unittest/flusher/FlusherSLSUnittest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -771,7 +771,7 @@ void FlusherSLSUnittest::TestBuildRequest() {
APSARA_TEST_EQUAL(443, req->mPort);
#endif
APSARA_TEST_EQUAL(static_cast<uint32_t>(INT32_FLAG(default_http_request_timeout_sec)), req->mTimeout);
APSARA_TEST_EQUAL(static_cast<uint32_t>(INT32_FLAG(default_http_request_max_try_cnt)), req->mMaxTryCnt);
APSARA_TEST_EQUAL(1U, req->mMaxTryCnt);
APSARA_TEST_FALSE(req->mFollowRedirects);
APSARA_TEST_EQUAL(&item, req->mItem);
APSARA_TEST_FALSE(item.mRealIpFlag);
Expand Down Expand Up @@ -834,7 +834,7 @@ void FlusherSLSUnittest::TestBuildRequest() {
APSARA_TEST_EQUAL(443, req->mPort);
#endif
APSARA_TEST_EQUAL(static_cast<uint32_t>(INT32_FLAG(default_http_request_timeout_sec)), req->mTimeout);
APSARA_TEST_EQUAL(static_cast<uint32_t>(INT32_FLAG(default_http_request_max_try_cnt)), req->mMaxTryCnt);
APSARA_TEST_EQUAL(1U, req->mMaxTryCnt);
APSARA_TEST_FALSE(req->mFollowRedirects);
APSARA_TEST_EQUAL(&item, req->mItem);
#ifdef __ENTERPRISE__
Expand Down Expand Up @@ -897,7 +897,7 @@ void FlusherSLSUnittest::TestBuildRequest() {
APSARA_TEST_EQUAL(443, req->mPort);
#endif
APSARA_TEST_EQUAL(static_cast<uint32_t>(INT32_FLAG(default_http_request_timeout_sec)), req->mTimeout);
APSARA_TEST_EQUAL(static_cast<uint32_t>(INT32_FLAG(default_http_request_max_try_cnt)), req->mMaxTryCnt);
APSARA_TEST_EQUAL(1U, req->mMaxTryCnt);
APSARA_TEST_FALSE(req->mFollowRedirects);
APSARA_TEST_EQUAL(&item, req->mItem);
APSARA_TEST_FALSE(item.mRealIpFlag);
Expand Down Expand Up @@ -966,7 +966,7 @@ void FlusherSLSUnittest::TestBuildRequest() {
APSARA_TEST_EQUAL(443, req->mPort);
#endif
APSARA_TEST_EQUAL(static_cast<uint32_t>(INT32_FLAG(default_http_request_timeout_sec)), req->mTimeout);
APSARA_TEST_EQUAL(static_cast<uint32_t>(INT32_FLAG(default_http_request_max_try_cnt)), req->mMaxTryCnt);
APSARA_TEST_EQUAL(1U, req->mMaxTryCnt);
APSARA_TEST_FALSE(req->mFollowRedirects);
APSARA_TEST_EQUAL(&item, req->mItem);
APSARA_TEST_FALSE(item.mRealIpFlag);
Expand Down Expand Up @@ -1024,7 +1024,7 @@ void FlusherSLSUnittest::TestBuildRequest() {
APSARA_TEST_EQUAL(443, req->mPort);
#endif
APSARA_TEST_EQUAL(static_cast<uint32_t>(INT32_FLAG(default_http_request_timeout_sec)), req->mTimeout);
APSARA_TEST_EQUAL(static_cast<uint32_t>(INT32_FLAG(default_http_request_max_try_cnt)), req->mMaxTryCnt);
APSARA_TEST_EQUAL(1U, req->mMaxTryCnt);
APSARA_TEST_FALSE(req->mFollowRedirects);
APSARA_TEST_EQUAL(&item, req->mItem);
APSARA_TEST_FALSE(item.mRealIpFlag);
Expand Down Expand Up @@ -1080,7 +1080,7 @@ void FlusherSLSUnittest::TestBuildRequest() {
APSARA_TEST_EQUAL("192.168.0.1", req->mHost);
APSARA_TEST_EQUAL(80, req->mPort);
APSARA_TEST_EQUAL(static_cast<uint32_t>(INT32_FLAG(default_http_request_timeout_sec)), req->mTimeout);
APSARA_TEST_EQUAL(static_cast<uint32_t>(INT32_FLAG(default_http_request_max_try_cnt)), req->mMaxTryCnt);
APSARA_TEST_EQUAL(1U, req->mMaxTryCnt);
APSARA_TEST_FALSE(req->mFollowRedirects);
APSARA_TEST_EQUAL(&item, req->mItem);
APSARA_TEST_TRUE(item.mRealIpFlag);
Expand All @@ -1107,7 +1107,7 @@ void FlusherSLSUnittest::TestBuildRequest() {
APSARA_TEST_EQUAL("test_project." + kAccelerationDataEndpoint, req->mHost);
APSARA_TEST_EQUAL(80, req->mPort);
APSARA_TEST_EQUAL(static_cast<uint32_t>(INT32_FLAG(default_http_request_timeout_sec)), req->mTimeout);
APSARA_TEST_EQUAL(static_cast<uint32_t>(INT32_FLAG(default_http_request_max_try_cnt)), req->mMaxTryCnt);
APSARA_TEST_EQUAL(1U, req->mMaxTryCnt);
APSARA_TEST_FALSE(req->mFollowRedirects);
APSARA_TEST_EQUAL(&item, req->mItem);
APSARA_TEST_FALSE(item.mRealIpFlag);
Expand Down

0 comments on commit b916dd7

Please sign in to comment.