mirror of
https://github.com/hierynomus/sshj.git
synced 2025-12-07 15:50:57 +03:00
Added todo comment
This commit is contained in:
@@ -26,9 +26,11 @@ public class CommandTest {
|
|||||||
sshClient.authPassword("jeroen", "jeroen");
|
sshClient.authPassword("jeroen", "jeroen");
|
||||||
File file = new File(temp.getRoot(), "testdir");
|
File file = new File(temp.getRoot(), "testdir");
|
||||||
assertThat("File should not exist", !file.exists());
|
assertThat("File should not exist", !file.exists());
|
||||||
|
// TODO figure out why this does not really execute in the background.
|
||||||
Session.Command exec = sshClient.startSession().exec("mkdir " + file.getPath() + " &");
|
Session.Command exec = sshClient.startSession().exec("mkdir " + file.getPath() + " &");
|
||||||
exec.join();
|
exec.join();
|
||||||
assertThat("File should exist", file.exists());
|
assertThat("File should exist", file.exists());
|
||||||
assertThat("File should be directory", file.isDirectory());
|
assertThat("File should be directory", file.isDirectory());
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user