Skip to content

Commit

Permalink
Use URL instead of File.toURI
Browse files Browse the repository at this point in the history
  • Loading branch information
ddanielr committed Jan 31, 2025
1 parent 65f721c commit 7e3e230
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1081,8 +1081,7 @@ public void testComputeLoadPlanWithPath() throws Exception {
var e = assertThrows(IllegalArgumentException.class, () -> writer.getLoadPlan(testFile));
assertTrue(e.getMessage().contains("Unexpected path"));
assertEquals(4, writer.getLoadPlan(new Path(testFile).getName()).getDestinations().size());
assertEquals(4,
LoadPlan.compute(new File(testFile).toURI(), splitResolver).getDestinations().size());
assertEquals(4, LoadPlan.compute(new URI(testFile), splitResolver).getDestinations().size());

String hdfsHost = "127.0.0.5:8080";
String fileUri = "hdfs://" + hdfsHost + "/bulk-xyx/file1.rf";
Expand Down

0 comments on commit 7e3e230

Please sign in to comment.