Skip to content

Commit

Permalink
Fix sonar issues (#31428)
Browse files Browse the repository at this point in the history
  • Loading branch information
terrymanu authored May 28, 2024
1 parent edefb06 commit c7e5b8f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ void setUp() {
}

@Test
void getProcessList() {
void assertGetProcessList() {
when(repository.getChildrenKeys(ComputeNode.getOnlineNodePath(InstanceType.JDBC))).thenReturn(Collections.emptyList());
when(repository.getChildrenKeys(ComputeNode.getOnlineNodePath(InstanceType.PROXY))).thenReturn(Collections.singletonList("abc"));
when(repository.query(any())).thenReturn(null);
Expand All @@ -55,7 +55,7 @@ void getProcessList() {
}

@Test
void killProcess() {
void assertKillProcess() {
when(repository.getChildrenKeys(ComputeNode.getOnlineNodePath(InstanceType.JDBC))).thenReturn(Collections.emptyList());
when(repository.getChildrenKeys(ComputeNode.getOnlineNodePath(InstanceType.PROXY))).thenReturn(Collections.singletonList("abc"));
processPersistService.killProcess("foo_process_id");
Expand Down

0 comments on commit c7e5b8f

Please sign in to comment.