shauryachats commented on code in PR #18467:
URL: https://github.com/apache/pinot/pull/18467#discussion_r3263674047


##########
pinot-server/src/test/java/org/apache/pinot/server/predownload/PredownloadSchedulerTest.java:
##########
@@ -216,22 +217,25 @@ public void 
getSegmentsInfoWithoutCrypterName(PredownloadZKClient predownloadZkC
     _predownloadScheduler.getSegmentsInfo();
   }
 
-  public void loadSegmentsFromLocal() {
-    // Only segment 3 will be loaded
-    SegmentDirectory segmentDirectory = mock(SegmentDirectory.class);
-    SegmentMetadataImpl segmentMetadata = mock(SegmentMetadataImpl.class);
-    when(segmentDirectory.getSegmentMetadata()).thenReturn(segmentMetadata);
-    when(segmentDirectory.getDiskSizeBytes()).thenReturn(DISK_SIZE_BYTES);
-    when(segmentMetadata.getCrc()).thenReturn(String.valueOf(CRC));
+  public void loadSegmentsFromLocal()
+      throws Exception {
+    // Only segment 3 will be loaded — create a real creation.meta with 
matching CRC
+    File seg3Dir = 
Files.createTempDirectory("predownload-seg3-predownload-seg3-").toFile();

Review Comment:
   `predownload-seg3-predownload-seg3-` is it intentional? could be 
`predownload-seg3`.



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