jspwiki-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mets...@apache.org
Subject svn commit: r1510190 - /jspwiki/trunk/jspwiki-war/src/test/java/org/apache/wiki/search/SearchManagerTest.java
Date Sun, 04 Aug 2013 14:12:43 GMT
Author: metskem
Date: Sun Aug  4 14:12:43 2013
New Revision: 1510190

URL: http://svn.apache.org/r1510190
Log:
trying out more wait time for JSPWIKI-799...

Modified:
    jspwiki/trunk/jspwiki-war/src/test/java/org/apache/wiki/search/SearchManagerTest.java

Modified: jspwiki/trunk/jspwiki-war/src/test/java/org/apache/wiki/search/SearchManagerTest.java
URL: http://svn.apache.org/viewvc/jspwiki/trunk/jspwiki-war/src/test/java/org/apache/wiki/search/SearchManagerTest.java?rev=1510190&r1=1510189&r2=1510190&view=diff
==============================================================================
--- jspwiki/trunk/jspwiki-war/src/test/java/org/apache/wiki/search/SearchManagerTest.java
(original)
+++ jspwiki/trunk/jspwiki-war/src/test/java/org/apache/wiki/search/SearchManagerTest.java
Sun Aug  4 14:12:43 2013
@@ -34,7 +34,7 @@ import org.apache.wiki.WikiContext;
 
 public class SearchManagerTest extends TestCase
 {
-    private static final long SLEEP_TIME = 200L;
+    private static final long SLEEP_TIME = 1000L;
     TestEngine m_engine;
     SearchManager m_mgr;
     
@@ -72,13 +72,14 @@ public class SearchManagerTest extends T
     Collection waitForIndex( String text ) throws Exception
     {
         Collection res = null;
-        for( long l = 0; l < 50; l++ ) 
+        for( long l = 0; l < 20; l++ )
         {
-            if( res == null || res.isEmpty() ) 
+            if( res == null || res.isEmpty() )
             {
                 Thread.sleep( SLEEP_TIME );
+                System.out.println( "SearchManagerTest.waitForIndex sleeping " + l + " (out
of 20), result (size): " + res!= null ? res.size() : res );
             }
-            else 
+            else
             {
                 break;
             }



Mime
View raw message