You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by rm...@apache.org on 2014/11/06 10:21:59 UTC

svn commit: r1637054 - /lucene/dev/trunk/lucene/core/src/test/org/apache/lucene/search/TestAutomatonQuery.java

Author: rmuir
Date: Thu Nov  6 09:21:58 2014
New Revision: 1637054

URL: http://svn.apache.org/r1637054
Log:
LUCENE-6046: let this test determinize massive automata

Modified:
    lucene/dev/trunk/lucene/core/src/test/org/apache/lucene/search/TestAutomatonQuery.java

Modified: lucene/dev/trunk/lucene/core/src/test/org/apache/lucene/search/TestAutomatonQuery.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/lucene/core/src/test/org/apache/lucene/search/TestAutomatonQuery.java?rev=1637054&r1=1637053&r2=1637054&view=diff
==============================================================================
--- lucene/dev/trunk/lucene/core/src/test/org/apache/lucene/search/TestAutomatonQuery.java (original)
+++ lucene/dev/trunk/lucene/core/src/test/org/apache/lucene/search/TestAutomatonQuery.java Thu Nov  6 09:21:58 2014
@@ -214,7 +214,7 @@ public class TestAutomatonQuery extends 
   public void testHashCodeWithThreads() throws Exception {
     final AutomatonQuery queries[] = new AutomatonQuery[1000];
     for (int i = 0; i < queries.length; i++) {
-      queries[i] = new AutomatonQuery(new Term("bogus", "bogus"), AutomatonTestUtil.randomAutomaton(random()));
+      queries[i] = new AutomatonQuery(new Term("bogus", "bogus"), AutomatonTestUtil.randomAutomaton(random()), Integer.MAX_VALUE);
     }
     final CountDownLatch startingGun = new CountDownLatch(1);
     int numThreads = TestUtil.nextInt(random(), 2, 5);



Re: svn commit: r1637054 - /lucene/dev/trunk/lucene/core/src/test/org/apache/lucene/search/TestAutomatonQuery.java

Posted by Michael McCandless <lu...@mikemccandless.com>.
Thanks Rob.

I'll do a grep & fix all other places using AutomatonTestUtil.randomAutomaton.

Mike McCandless

http://blog.mikemccandless.com


On Thu, Nov 6, 2014 at 4:21 AM,  <rm...@apache.org> wrote:
> Author: rmuir
> Date: Thu Nov  6 09:21:58 2014
> New Revision: 1637054
>
> URL: http://svn.apache.org/r1637054
> Log:
> LUCENE-6046: let this test determinize massive automata
>
> Modified:
>     lucene/dev/trunk/lucene/core/src/test/org/apache/lucene/search/TestAutomatonQuery.java
>
> Modified: lucene/dev/trunk/lucene/core/src/test/org/apache/lucene/search/TestAutomatonQuery.java
> URL: http://svn.apache.org/viewvc/lucene/dev/trunk/lucene/core/src/test/org/apache/lucene/search/TestAutomatonQuery.java?rev=1637054&r1=1637053&r2=1637054&view=diff
> ==============================================================================
> --- lucene/dev/trunk/lucene/core/src/test/org/apache/lucene/search/TestAutomatonQuery.java (original)
> +++ lucene/dev/trunk/lucene/core/src/test/org/apache/lucene/search/TestAutomatonQuery.java Thu Nov  6 09:21:58 2014
> @@ -214,7 +214,7 @@ public class TestAutomatonQuery extends
>    public void testHashCodeWithThreads() throws Exception {
>      final AutomatonQuery queries[] = new AutomatonQuery[1000];
>      for (int i = 0; i < queries.length; i++) {
> -      queries[i] = new AutomatonQuery(new Term("bogus", "bogus"), AutomatonTestUtil.randomAutomaton(random()));
> +      queries[i] = new AutomatonQuery(new Term("bogus", "bogus"), AutomatonTestUtil.randomAutomaton(random()), Integer.MAX_VALUE);
>      }
>      final CountDownLatch startingGun = new CountDownLatch(1);
>      int numThreads = TestUtil.nextInt(random(), 2, 5);
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org