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,  <[email protected]> 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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to