From 719fb39516f2f26ee98fcb6051c9120b83b65fce Mon Sep 17 00:00:00 2001 From: abingcbc Date: Sat, 28 Dec 2024 15:36:44 +0800 Subject: [PATCH] fix --- .../host_monitor/ProcessEntityCollectorUnittest.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/unittest/host_monitor/ProcessEntityCollectorUnittest.cpp b/core/unittest/host_monitor/ProcessEntityCollectorUnittest.cpp index d9234228b7..13e52a2a70 100644 --- a/core/unittest/host_monitor/ProcessEntityCollectorUnittest.cpp +++ b/core/unittest/host_monitor/ProcessEntityCollectorUnittest.cpp @@ -40,9 +40,9 @@ void ProcessEntityCollectorUnittest::TestSortProcessByCpu() const { PROCESS_DIR = "/proc"; auto collector = ProcessEntityCollector(); auto processes = vector(); - collector.GetSortedProcess(processes, 5); // fist time will be ignored - collector.GetSortedProcess(processes, 5); - APSARA_TEST_EQUAL(5, processes.size()); + collector.GetSortedProcess(processes, 3); // fist time will be ignored + collector.GetSortedProcess(processes, 3); + APSARA_TEST_EQUAL(3, processes.size()); auto prev = processes[0]; for (auto i = 1; i < processes.size(); i++) { auto process = processes[i];