camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ningji...@apache.org
Subject svn commit: r790781 - /camel/trunk/components/camel-jaxb/src/test/java/org/apache/camel/jaxb/DumpToXmlTest.java
Date Fri, 03 Jul 2009 02:49:34 GMT
Author: ningjiang
Date: Fri Jul  3 02:49:34 2009
New Revision: 790781

URL: http://svn.apache.org/viewvc?rev=790781&view=rev
Log:
Try to fix the test error of jaxb on TC

Modified:
    camel/trunk/components/camel-jaxb/src/test/java/org/apache/camel/jaxb/DumpToXmlTest.java

Modified: camel/trunk/components/camel-jaxb/src/test/java/org/apache/camel/jaxb/DumpToXmlTest.java
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-jaxb/src/test/java/org/apache/camel/jaxb/DumpToXmlTest.java?rev=790781&r1=790780&r2=790781&view=diff
==============================================================================
--- camel/trunk/components/camel-jaxb/src/test/java/org/apache/camel/jaxb/DumpToXmlTest.java
(original)
+++ camel/trunk/components/camel-jaxb/src/test/java/org/apache/camel/jaxb/DumpToXmlTest.java
Fri Jul  3 02:49:34 2009
@@ -44,6 +44,10 @@
         // assert dump file exists
         File file = new File("target/camel/dump");
         file = file.getAbsoluteFile();
+        if (!file.exists()) {
+            // sleep a while for the slower box
+            Thread.sleep(5000);
+        }
         assertTrue("The dump folder should exists", file.exists());
         assertEquals("There should be 2 dumped files", 2, file.list().length);
     }



Mime
View raw message