Skip to content

Commit

Permalink
Cleanup SshProxyTest
Browse files Browse the repository at this point in the history
  • Loading branch information
bwaldvogel committed Dec 29, 2024
1 parent 67068e4 commit 53e34fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/test/java/de/cronn/proxy/ssh/SshProxyTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ private static Path getServerKeyFile(String algorithm) {

private void appendToSshFile(String filename, String text) throws IOException {
Path config = dotSsh.resolve(filename);
Files.write(config, text.getBytes(CONFIG_CHARSET), StandardOpenOption.APPEND, StandardOpenOption.CREATE);
Files.writeString(config, text, CONFIG_CHARSET, StandardOpenOption.APPEND, StandardOpenOption.CREATE);
}

}

0 comments on commit 53e34fc

Please sign in to comment.