Author: cmueller
Date: Sat Mar 23 13:24:33 2013
New Revision: 1460139
URL: http://svn.apache.org/r1460139
Log:
fixed unit tests which fails from time to time on slow CI servers
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=1460139&r1=1460138&r2=1460139&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
Sat Mar 23 13:24:33 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(500);
+ Thread.sleep(800);
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(500);
+ Thread.sleep(800);
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(500);
+ Thread.sleep(800);
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(500);
+ Thread.sleep(800);
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(500);
+ Thread.sleep(800);
File file = new File(getScpPath() + "/welt.txt");
assertFileExists(file.getAbsolutePath());