[exo-jcr-commits] exo-jcr SVN: r1241 - jcr/branches/1.12.0-JBCCACHE/exo.jcr.component.core/src/test/java/org/exoplatform/services/jcr/lab/cluster/test.
do-not-reply at jboss.org
do-not-reply at jboss.org
Tue Dec 29 10:16:22 EST 2009
Author: nzamosenchuk
Date: 2009-12-29 10:16:22 -0500 (Tue, 29 Dec 2009)
New Revision: 1241
Modified:
jcr/branches/1.12.0-JBCCACHE/exo.jcr.component.core/src/test/java/org/exoplatform/services/jcr/lab/cluster/test/TestLoadIndexerQuery.java
Log:
EXOJCR-325: Added sleep to thread for waiting till volatile index is flushed to FS.
Modified: jcr/branches/1.12.0-JBCCACHE/exo.jcr.component.core/src/test/java/org/exoplatform/services/jcr/lab/cluster/test/TestLoadIndexerQuery.java
===================================================================
--- jcr/branches/1.12.0-JBCCACHE/exo.jcr.component.core/src/test/java/org/exoplatform/services/jcr/lab/cluster/test/TestLoadIndexerQuery.java 2009-12-29 15:15:27 UTC (rev 1240)
+++ jcr/branches/1.12.0-JBCCACHE/exo.jcr.component.core/src/test/java/org/exoplatform/services/jcr/lab/cluster/test/TestLoadIndexerQuery.java 2009-12-29 15:16:22 UTC (rev 1241)
@@ -105,6 +105,14 @@
String word = wordNode.getName();
Long count = wordNode.getProperty(TestLoadIndexerWriter.COUNT).getLong();
+ try
+ {
+ Thread.sleep(2000);
+ }
+ catch (InterruptedException e1)
+ {
+ }
+
QueryManager qman = sessionLocal.getWorkspace().getQueryManager();
Query q = qman.createQuery("SELECT * FROM nt:base WHERE fn:name() = '" + word + "'", Query.SQL);
@@ -113,7 +121,7 @@
try
{
assertTrue("Exp: "+count+"\t found:"+sqlsize, sqlsize >= count);
- System.out.print("+("+sqlsize+")");
+ System.out.println("+("+sqlsize+")");
}
catch (AssertionFailedError e)
{
More information about the exo-jcr-commits
mailing list