Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Abingcbc committed Dec 28, 2024
1 parent 77f1384 commit 719fb39
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core/unittest/host_monitor/ProcessEntityCollectorUnittest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ void ProcessEntityCollectorUnittest::TestSortProcessByCpu() const {
PROCESS_DIR = "/proc";
auto collector = ProcessEntityCollector();
auto processes = vector<ProcessStatPtr>();
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];
Expand Down

0 comments on commit 719fb39

Please sign in to comment.