1818#include " collection_pipeline/CollectionPipelineContext.h"
1919#include " common/JsonUtil.h"
2020#include " common/http/AsynCurlRunner.h"
21+ #include " container_manager/ContainerManager.h"
2122#include " ebpf/EBPFServer.h"
2223#include " plugin/input/InputCpuProfiling.h"
2324#include " unittest/Unittest.h"
@@ -27,7 +28,6 @@ namespace logtail {
2728class InputCpuProfilingUnittest : public testing ::Test {
2829public:
2930 void TestName ();
30- void TestSupportAck ();
3131 void OnSuccessfulInit ();
3232 void OnFailedInit ();
3333 void OnSuccessfulStart ();
@@ -44,6 +44,7 @@ class InputCpuProfilingUnittest : public testing::Test {
4444 void TearDown () override {
4545 ebpf::EBPFServer::GetInstance ()->Stop ();
4646 AsynCurlRunner::GetInstance ()->Stop ();
47+ ContainerManager::GetInstance ()->Stop ();
4748 }
4849
4950private:
@@ -57,12 +58,6 @@ void InputCpuProfilingUnittest::TestName() {
5758 APSARA_TEST_EQUAL (name, " input_cpu_profiling" );
5859}
5960
60- void InputCpuProfilingUnittest::TestSupportAck () {
61- InputCpuProfiling input;
62- bool supportAck = input.SupportAck ();
63- APSARA_TEST_TRUE (supportAck);
64- }
65-
6661void InputCpuProfilingUnittest::OnSuccessfulInit () {
6762 std::unique_ptr<InputCpuProfiling> input;
6863 Json::Value configJson, optionalGoPipeline;
@@ -152,7 +147,6 @@ void InputCpuProfilingUnittest::OnSuccessfulStop() {
152147}
153148
154149UNIT_TEST_CASE (InputCpuProfilingUnittest, TestName)
155- UNIT_TEST_CASE (InputCpuProfilingUnittest, TestSupportAck)
156150UNIT_TEST_CASE (InputCpuProfilingUnittest, OnSuccessfulInit)
157151UNIT_TEST_CASE (InputCpuProfilingUnittest, OnFailedInit)
158152UNIT_TEST_CASE (InputCpuProfilingUnittest, OnSuccessfulStart)
0 commit comments