Added todo comment

This commit is contained in:
Jeroen van Erp
2015-11-04 10:27:39 +01:00
parent bdf9ab7452
commit a2a5923767

View File

@@ -26,9 +26,11 @@ public class CommandTest {
sshClient.authPassword("jeroen", "jeroen");
File file = new File(temp.getRoot(), "testdir");
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() + " &");
exec.join();
assertThat("File should exist", file.exists());
assertThat("File should be directory", file.isDirectory());
}
}