dial-down some spatial @Repeat iterations

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1671662 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
David Wayne Smiley 2015-04-06 19:26:16 +00:00
parent a0c4e5186e
commit 646c600219
2 changed files with 6 additions and 7 deletions

View File

@ -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)

View File

@ -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