vishesh92 commented on code in PR #10686: URL: https://github.com/apache/cloudstack/pull/10686#discussion_r2036825196
########## plugins/maintenance/src/test/java/org/apache/cloudstack/maintenance/ManagementServerMaintenanceManagerImplTest.java: ########## @@ -154,7 +154,7 @@ public void prepareForShutdownCmdOtherMsHostsInPreparingState() { ManagementServerHostVO msHost2 = mock(ManagementServerHostVO.class); List<ManagementServerHostVO> msHostList = new ArrayList<>(); msHostList.add(msHost2); - Mockito.when(msHostDao.listBy(any())).thenReturn(msHostList); + Mockito.lenient().when(msHostDao.listBy(any())).thenReturn(msHostList); Review Comment: iirc mockito was throwing errors earlier when an unnecessary mocks was setup. Why is `lenient()` required now? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@cloudstack.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org