You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by mi...@apache.org on 2015/05/26 22:29:53 UTC

svn commit: r1681849 - /lucene/dev/branches/LUCENE-6481/lucene/sandbox/src/test/org/apache/lucene/search/TestGeoPointQuery.java

Author: mikemccand
Date: Tue May 26 20:29:53 2015
New Revision: 1681849

URL: http://svn.apache.org/r1681849
Log:
LUCENE-6481: enable threads and random poly query in test

Modified:
    lucene/dev/branches/LUCENE-6481/lucene/sandbox/src/test/org/apache/lucene/search/TestGeoPointQuery.java

Modified: lucene/dev/branches/LUCENE-6481/lucene/sandbox/src/test/org/apache/lucene/search/TestGeoPointQuery.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/LUCENE-6481/lucene/sandbox/src/test/org/apache/lucene/search/TestGeoPointQuery.java?rev=1681849&r1=1681848&r2=1681849&view=diff
==============================================================================
--- lucene/dev/branches/LUCENE-6481/lucene/sandbox/src/test/org/apache/lucene/search/TestGeoPointQuery.java (original)
+++ lucene/dev/branches/LUCENE-6481/lucene/sandbox/src/test/org/apache/lucene/search/TestGeoPointQuery.java Tue May 26 20:29:53 2015
@@ -249,9 +249,8 @@ public class TestGeoPointQuery extends L
 
     IndexSearcher s = newSearcher(r);
 
-    // nocommit put back:
-    // int numThreads = TestUtil.nextInt(random(), 2, 5);
-    int numThreads = 1;
+    // Make sure queries are thread safe:
+    int numThreads = TestUtil.nextInt(random(), 2, 5);
 
     List<Thread> threads = new ArrayList<>();
     final int iters = atLeast(100);
@@ -304,8 +303,7 @@ public class TestGeoPointQuery extends L
               double bboxLon0 = lon0;
               double bboxLon1 = lon1;
 
-              // nocommit remove true || below:
-              if (true || random().nextBoolean()) {
+              if (random().nextBoolean()) {
                 query = new GeoPointInBBoxQuery(FIELD_NAME, lon0, lat0, lon1, lat1);
               } else {
                 // nocommit remove "false &&" below