You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jspwiki.apache.org by ju...@apache.org on 2019/05/02 18:02:15 UTC

[jspwiki] branch master updated: increase test sleep time in order to allow finish the lucene reindexing - hopefully fixes the failing test

This is an automated email from the ASF dual-hosted git repository.

juanpablo pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/jspwiki.git


The following commit(s) were added to refs/heads/master by this push:
     new 35ef3a9  increase test sleep time in order to allow finish the lucene reindexing - hopefully fixes the failing test
35ef3a9 is described below

commit 35ef3a9404a701fd8b6db6613e48b0d1c554fc49
Author: juanpablo <ju...@apache.org>
AuthorDate: Thu May 2 20:01:55 2019 +0200

    increase test sleep time in order to allow finish the lucene reindexing - hopefully fixes the failing test
---
 .../test/java/org/apache/wiki/search/tika/TikaSearchProviderTest.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/jspwiki-tika-searchprovider/src/test/java/org/apache/wiki/search/tika/TikaSearchProviderTest.java b/jspwiki-tika-searchprovider/src/test/java/org/apache/wiki/search/tika/TikaSearchProviderTest.java
index 7269c39..a400739 100644
--- a/jspwiki-tika-searchprovider/src/test/java/org/apache/wiki/search/tika/TikaSearchProviderTest.java
+++ b/jspwiki-tika-searchprovider/src/test/java/org/apache/wiki/search/tika/TikaSearchProviderTest.java
@@ -33,7 +33,7 @@ import java.util.Properties;
 
 public class TikaSearchProviderTest {
 
-    private static final long SLEEP_TIME = 2_000L;
+    private static final long SLEEP_TIME = 20_000L;
     private static final int SLEEP_COUNT = 50;
     TestEngine engine;
     Properties props;
@@ -79,7 +79,7 @@ public class TikaSearchProviderTest {
     /**
      * Should cover for both index and initial delay
      */
-    Collection<SearchResult> waitForIndex( String text, String testName ) throws Exception {
+    Collection< SearchResult > waitForIndex( String text, String testName ) throws Exception {
         Collection< SearchResult > res = null;
         for( long l = 0; l < SLEEP_COUNT; l++ ) {
             if( res == null || res.isEmpty() ) {