Skip to content

Commit

Permalink
Fix SFTP_BASE_DIRECTORY path
Browse files Browse the repository at this point in the history
  • Loading branch information
tsande16 committed Mar 6, 2024
1 parent 844bd85 commit 4260831
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
import static org.mockito.Mockito.when;

import java.io.IOException;
import java.nio.file.Path;
import java.time.OffsetDateTime;
import java.time.ZoneId;
import java.util.Collections;
Expand Down Expand Up @@ -86,7 +87,7 @@ public void testCreateFile() {
TRANSPORT_SERVER_PORT, String.valueOf(sshd.getPort()),
TRANSPORT_USERNAME, "dummyUser",
TRANSPORT_PASSWORD, "dummyPass",
SFTP_BASE_DIRECTORY, "/upload/test/%s"
SFTP_BASE_DIRECTORY, Path.of("/upload/test/%s").toString() //convert path for different platforms
);
String testFileName = System.currentTimeMillis() + "package.tar.gz";
NullInputStream content = new NullInputStream(ONE_MIB);
Expand Down

0 comments on commit 4260831

Please sign in to comment.