Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Abingcbc committed Dec 27, 2024
1 parent 0693bb1 commit 77f1384
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core/unittest/host_monitor/HostMonitorInputRunnerUnittest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,11 @@ class HostMonitorInputRunnerUnittest : public testing::Test {
void HostMonitorInputRunnerUnittest::TestUpdateAndRemoveCollector() const {
auto runner = HostMonitorInputRunner::GetInstance();
runner->Init();
runner->UpdateCollector({"mock"}, QueueKey{}, 0);
APSARA_TEST_TRUE_FATAL(runner->IsCollectTaskValid("test", "mock"));
runner->UpdateCollector({"process_entity"}, QueueKey{}, 0);
APSARA_TEST_TRUE_FATAL(runner->IsCollectTaskValid("test", "process_entity"));
APSARA_TEST_TRUE_FATAL(runner->HasRegisteredPlugins());
runner->RemoveCollector();
APSARA_TEST_FALSE_FATAL(runner->IsCollectTaskValid("test", "mock"));
APSARA_TEST_FALSE_FATAL(runner->IsCollectTaskValid("test", "process_entity"));
APSARA_TEST_FALSE_FATAL(runner->HasRegisteredPlugins());
runner->Stop();
}
Expand Down

0 comments on commit 77f1384

Please sign in to comment.