Skip to content

Commit 3d1e896

Browse files
ennoruijterssteve-todorov
authored andcommitted
Fix unit test to work on Windows (and other backslash-using filesystems)
1 parent 8b37b08 commit 3d1e896

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)