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? Can't we just remove the mock if it's
not required?
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]