Skip to content

Commit c736528

Browse files
ennoruijterscarlspring
authored andcommitted
Fix unit test to work on Windows (and other backslash-using filesystems)
1 parent db7f856 commit c736528

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/java/org/carlspring/cloud/storage/s3fs/path/ResolveTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ void nonS3Paths()
8989
assertEquals("s3://s3.test.amazonaws.com/bucket/./rabbit%20in%20space", resolved.toString());
9090

9191
IllegalArgumentException e = assertThrows(IllegalArgumentException.class, () ->
92-
parent.resolve(Paths.get("/tmp")));
92+
parent.resolve(Paths.get("tempDirectory").toAbsolutePath()));
9393
assertEquals("other must be an instance of org.carlspring.cloud.storage.s3fs.S3Path or a relative Path", e.getMessage());
9494
}
9595
}

0 commit comments

Comments
 (0)