hemantk-12 commented on code in PR #4249:
URL: https://github.com/apache/ozone/pull/4249#discussion_r1100494494


##########
hadoop-ozone/ozone-manager/src/test/java/org/apache/hadoop/ozone/om/ratis/TestOzoneManagerDoubleBuffer.java:
##########
@@ -109,9 +110,12 @@ public void setup() throws IOException {
     when(omBucketResponse.getTraceID()).thenReturn("bucketTraceId");
     when(omSnapshotResponse1.getTraceID()).thenReturn("snapshotTraceId-1");
     when(omSnapshotResponse2.getTraceID()).thenReturn("snapshotTraceId-2");
-
-    when(omKeyResponse.getCreateSnapshotResponse()).thenReturn(null);
-    when(omBucketResponse.getCreateSnapshotResponse()).thenReturn(null);
+    when(snapshotResponse1.hasSnapshotInfo()).thenReturn(true);
+    when(snapshotResponse2.hasSnapshotInfo()).thenReturn(true);

Review Comment:
   nit: I don't think line number 113, 114, 130 and 132 are needed anymore.



-- 
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]

Reply via email to