Galsza commented on code in PR #5559:
URL: https://github.com/apache/ozone/pull/5559#discussion_r1386604219
##########
hadoop-ozone/ozone-manager/src/test/java/org/apache/hadoop/ozone/om/upgrade/TestOMUpgradeFinalizer.java:
##########
@@ -249,7 +245,7 @@ private void setupVersionManagerMockToFinalize(
private OMLayoutFeature mockFeature(String name, int version) {
OMLayoutFeature f = mock(OMLayoutFeature.class);
- when(f.name()).thenReturn(name);
+ Mockito.lenient().when(f.name()).thenReturn(name);
Review Comment:
Is there a reason for using lenient here and in the other places in this
test? I think they are not needed
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]