From 646c6002198d041e68496ccc7ef0779a46c1948c Mon Sep 17 00:00:00 2001 From: David Wayne Smiley Date: Mon, 6 Apr 2015 19:26:16 +0000 Subject: [PATCH] dial-down some spatial @Repeat iterations git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1671662 13f79535-47bb-0310-9956-ffa450edef68 --- .../apache/lucene/spatial/bbox/TestBBoxStrategy.java | 2 +- .../lucene/spatial/prefix/NumberRangeFacetsTest.java | 11 +++++------ 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/lucene/spatial/src/test/org/apache/lucene/spatial/bbox/TestBBoxStrategy.java b/lucene/spatial/src/test/org/apache/lucene/spatial/bbox/TestBBoxStrategy.java index 1a189f71a1c..665b3586bf4 100644 --- a/lucene/spatial/src/test/org/apache/lucene/spatial/bbox/TestBBoxStrategy.java +++ b/lucene/spatial/src/test/org/apache/lucene/spatial/bbox/TestBBoxStrategy.java @@ -96,7 +96,7 @@ public class TestBBoxStrategy extends RandomSpatialOpStrategyTestCase { } @Test - @Repeat(iterations = 20) + @Repeat(iterations = 15) public void testOperations() throws IOException { //setup if (random().nextInt(4) > 0) {//75% of the time choose geo (more interesting to test) diff --git a/lucene/spatial/src/test/org/apache/lucene/spatial/prefix/NumberRangeFacetsTest.java b/lucene/spatial/src/test/org/apache/lucene/spatial/prefix/NumberRangeFacetsTest.java index a2b1ab305d7..22c0edba9ea 100644 --- a/lucene/spatial/src/test/org/apache/lucene/spatial/prefix/NumberRangeFacetsTest.java +++ b/lucene/spatial/src/test/org/apache/lucene/spatial/prefix/NumberRangeFacetsTest.java @@ -17,15 +17,14 @@ package org.apache.lucene.spatial.prefix; * limitations under the License. */ -import static com.carrotsearch.randomizedtesting.RandomizedTest.randomInt; -import static com.carrotsearch.randomizedtesting.RandomizedTest.randomIntBetween; - import java.io.IOException; import java.util.ArrayList; import java.util.Calendar; import java.util.Collections; import java.util.List; +import com.carrotsearch.randomizedtesting.annotations.Repeat; +import com.spatial4j.core.shape.Shape; import org.apache.lucene.index.Term; import org.apache.lucene.queries.TermsQuery; import org.apache.lucene.search.Filter; @@ -40,8 +39,8 @@ import org.apache.lucene.spatial.prefix.tree.NumberRangePrefixTree.UnitNRShape; import org.junit.Before; import org.junit.Test; -import com.carrotsearch.randomizedtesting.annotations.Repeat; -import com.spatial4j.core.shape.Shape; +import static com.carrotsearch.randomizedtesting.RandomizedTest.randomInt; +import static com.carrotsearch.randomizedtesting.RandomizedTest.randomIntBetween; public class NumberRangeFacetsTest extends StrategyTestCase { @@ -61,7 +60,7 @@ public class NumberRangeFacetsTest extends StrategyTestCase { randomCalWindowMs = Math.max(2000L, tmpCal.getTimeInMillis()); } - @Repeat(iterations = 100) + @Repeat(iterations = 20) @Test public void test() throws IOException { //generate test data