Author: cmueller Date: Fri Mar 22 09:03:39 2013 New Revision: 1459675 URL: http://svn.apache.org/r1459675 Log: fixed unit test which fails from time to time on slow boxes
Modified: camel/trunk/components/camel-jsch/src/test/java/org/apache/camel/component/jsch/ScpSimpleProduceTest.java Modified: camel/trunk/components/camel-jsch/src/test/java/org/apache/camel/component/jsch/ScpSimpleProduceTest.java URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-jsch/src/test/java/org/apache/camel/component/jsch/ScpSimpleProduceTest.java?rev=1459675&r1=1459674&r2=1459675&view=diff ============================================================================== --- camel/trunk/components/camel-jsch/src/test/java/org/apache/camel/component/jsch/ScpSimpleProduceTest.java (original) +++ camel/trunk/components/camel-jsch/src/test/java/org/apache/camel/component/jsch/ScpSimpleProduceTest.java Fri Mar 22 09:03:39 2013 @@ -35,7 +35,7 @@ public class ScpSimpleProduceTest extend String uri = getScpUri() + "?username=admin&password=admin&knownHostsFile=" + getKnownHostsFile(); template.sendBodyAndHeader(uri, "Hello World", Exchange.FILE_NAME, "hello.txt"); - Thread.sleep(200); + Thread.sleep(500); File file = new File(getScpPath() + "/hello.txt"); assertFileExists(file.getAbsolutePath()); @@ -48,7 +48,7 @@ public class ScpSimpleProduceTest extend String uri = getScpUri() + "?username=admin&password=admin&knownHostsFile=" + getKnownHostsFile(); template.sendBodyAndHeader(uri, "Bye World", Exchange.FILE_NAME, "mysub/bye.txt"); - Thread.sleep(200); + Thread.sleep(500); File file = new File(getScpPath() + "/mysub/bye.txt"); assertFileExists(file.getAbsolutePath()); @@ -61,7 +61,7 @@ public class ScpSimpleProduceTest extend String uri = getScpUri() + "?username=admin&password=admin&knownHostsFile=" + getKnownHostsFile(); template.sendBodyAndHeader(uri, "Farewell World", Exchange.FILE_NAME, "mysub/mysubsub/farewell.txt"); - Thread.sleep(200); + Thread.sleep(500); File file = new File(getScpPath() + "/mysub/mysubsub/farewell.txt"); assertFileExists(file.getAbsolutePath()); @@ -74,7 +74,7 @@ public class ScpSimpleProduceTest extend String uri = getScpUri() + "?username=admin&password=admin&chmod=640&knownHostsFile=" + getKnownHostsFile(); template.sendBodyAndHeader(uri, "Bonjour Monde", Exchange.FILE_NAME, "monde.txt"); - Thread.sleep(200); + Thread.sleep(500); File file = new File(getScpPath() + "/monde.txt"); assertFileExists(file.getAbsolutePath()); @@ -89,7 +89,7 @@ public class ScpSimpleProduceTest extend String uri = getScpUri() + "?username=admin&privateKeyFile=src/test/resources/camel-key.priv&privateKeyFilePassphrase=password&knownHostsFile=" + getKnownHostsFile(); template.sendBodyAndHeader(uri, "Hallo Welt", Exchange.FILE_NAME, "welt.txt"); - Thread.sleep(200); + Thread.sleep(500); File file = new File(getScpPath() + "/welt.txt"); assertFileExists(file.getAbsolutePath());