Skip to content

Commit

Permalink
[DS-14646][Worker] Fix match wrong pid on linux server
Browse files Browse the repository at this point in the history
This closes apache#14646
  • Loading branch information
yangxin3 committed Aug 4, 2023
1 parent 77873d4 commit 1bdeeee
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public void testGetPidsStr() throws Exception {
command3 = String.format("%s -p %d", TaskConstants.PSTREE, processId3);
}
osUtilsMockedStatic.when(() -> OSUtils.exeCmd(command3)).thenReturn(pids3);
String actualPidsStr3 = ProcessUtils.getPidsStr(processId2);
String actualPidsStr3 = ProcessUtils.getPidsStr(processId3);
Assertions.assertEquals(exceptPidsStr3, actualPidsStr3);
}

Expand Down

0 comments on commit 1bdeeee

Please sign in to comment.