You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-commits@jackrabbit.apache.org by ju...@apache.org on 2013/05/22 14:07:38 UTC

svn commit: r1485171 - /jackrabbit/oak/trunk/oak-lucene/src/test/java/org/apache/jackrabbit/oak/jcr/query/MultiSessionQueryTest.java

Author: jukka
Date: Wed May 22 12:07:38 2013
New Revision: 1485171

URL: http://svn.apache.org/r1485171
Log:
OAK-837: Lucene: colliding concurrency node creation

JUnit complains if there ar not tests in a test class, so use a different way to disable the test

Modified:
    jackrabbit/oak/trunk/oak-lucene/src/test/java/org/apache/jackrabbit/oak/jcr/query/MultiSessionQueryTest.java

Modified: jackrabbit/oak/trunk/oak-lucene/src/test/java/org/apache/jackrabbit/oak/jcr/query/MultiSessionQueryTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-lucene/src/test/java/org/apache/jackrabbit/oak/jcr/query/MultiSessionQueryTest.java?rev=1485171&r1=1485170&r2=1485171&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-lucene/src/test/java/org/apache/jackrabbit/oak/jcr/query/MultiSessionQueryTest.java (original)
+++ jackrabbit/oak/trunk/oak-lucene/src/test/java/org/apache/jackrabbit/oak/jcr/query/MultiSessionQueryTest.java Wed May 22 12:07:38 2013
@@ -27,9 +27,13 @@ import org.apache.jackrabbit.core.query.
  */
 public class MultiSessionQueryTest extends AbstractQueryTest {
 
+    private static final boolean DISABLED = true;
+
     final static int THREAD_COUNT = 3;
 
-    public void disabledTestConcurrent() throws Exception {
+    public void testConcurrent() throws Exception {
+        if (DISABLED) { return; } // test disabled for now
+
         final Exception[] ex = new Exception[1];
         Thread[] threads = new Thread[THREAD_COUNT];
         for (int i = 0; i < THREAD_COUNT; i++) {