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 bc0cd0d commit 842453b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions core/app_config/AppConfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -534,6 +534,7 @@ class AppConfig {
friend class InputContainerStdioUnittest;
friend class BatcherUnittest;
friend class EnterpriseSLSClientManagerUnittest;
friend class FlusherRunnerUnittest;
#endif
};

Expand Down
6 changes: 4 additions & 2 deletions core/unittest/sender/FlusherRunnerUnittest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ class FlusherRunnerUnittest : public ::testing::Test {
void TestPushToHttpSink();

protected:
static void SetUpTestCase() {
AppConfig::GetInstance()->mSendRequestGlobalConcurrency = 10;
}

void TearDown() override {
SenderQueueManager::GetInstance()->Clear();
HttpSink::GetInstance()->mQueue.Clear();
Expand All @@ -47,8 +51,6 @@ void FlusherRunnerUnittest::TestDispatch() {
flusher->SetMetricsRecordRef("name", "1");
flusher->Init(Json::Value(), tmp);

AppConfig::GetInstance()->mSendRequestGlobalConcurrency = 10;

auto item = make_unique<SenderQueueItem>("content", 10, flusher.get(), flusher->GetQueueKey());
auto realItem = item.get();
flusher->PushToQueue(std::move(item));
Expand Down

0 comments on commit 842453b

Please sign in to comment.