From 715db95af2c778c8b3aca39208936e0734adb40f Mon Sep 17 00:00:00 2001 From: Robert Muir Date: Wed, 17 Aug 2016 09:15:35 -0400 Subject: [PATCH] LUCENE-7415: tone down some of the longest core tests --- .../TestGrowableByteArrayDataOutput.java | 2 +- .../test/org/apache/lucene/geo/TestGeoUtils.java | 11 +++++++---- .../test/org/apache/lucene/geo/TestPolygon2D.java | 9 ++++++--- .../org/apache/lucene/index/TestIndexSorting.java | 2 +- .../lucene/index/TestIndexingSequenceNumbers.java | 4 ++++ .../test/org/apache/lucene/search/TestBoolean2.java | 13 +++++++++---- .../TestSimpleExplanationsWithFillerDocs.java | 2 ++ 7 files changed, 30 insertions(+), 13 deletions(-) diff --git a/lucene/core/src/test/org/apache/lucene/codecs/compressing/TestGrowableByteArrayDataOutput.java b/lucene/core/src/test/org/apache/lucene/codecs/compressing/TestGrowableByteArrayDataOutput.java index fb90d925eb9..3820733ecca 100644 --- a/lucene/core/src/test/org/apache/lucene/codecs/compressing/TestGrowableByteArrayDataOutput.java +++ b/lucene/core/src/test/org/apache/lucene/codecs/compressing/TestGrowableByteArrayDataOutput.java @@ -58,7 +58,7 @@ public class TestGrowableByteArrayDataOutput extends LuceneTestCase { public void testWriteLargeStrings() throws Exception { int minSizeForDoublePass = GrowableByteArrayDataOutput.MIN_UTF8_SIZE_TO_ENABLE_DOUBLE_PASS_ENCODING; - int num = atLeast(1000); + int num = atLeast(100); for (int i = 0; i < num; i++) { String unicode = TestUtil.randomRealisticUnicodeString(random(), minSizeForDoublePass, 10 * minSizeForDoublePass); byte[] utf8 = new byte[unicode.length() * UnicodeUtil.MAX_UTF8_BYTES_PER_CHAR]; diff --git a/lucene/core/src/test/org/apache/lucene/geo/TestGeoUtils.java b/lucene/core/src/test/org/apache/lucene/geo/TestGeoUtils.java index e75ae85b8a6..2cfb2f84002 100644 --- a/lucene/core/src/test/org/apache/lucene/geo/TestGeoUtils.java +++ b/lucene/core/src/test/org/apache/lucene/geo/TestGeoUtils.java @@ -30,7 +30,7 @@ public class TestGeoUtils extends LuceneTestCase { // We rely heavily on GeoUtils.circleToBBox so we test it here: public void testRandomCircleToBBox() throws Exception { - int iters = atLeast(1000); + int iters = atLeast(100); for(int iter=0;iter 0) { diff --git a/lucene/core/src/test/org/apache/lucene/index/TestIndexSorting.java b/lucene/core/src/test/org/apache/lucene/index/TestIndexSorting.java index 96e53ab54ac..3c457f33e95 100644 --- a/lucene/core/src/test/org/apache/lucene/index/TestIndexSorting.java +++ b/lucene/core/src/test/org/apache/lucene/index/TestIndexSorting.java @@ -1217,7 +1217,7 @@ public class TestIndexSorting extends LuceneTestCase { if (TEST_NIGHTLY) { numDocs = atLeast(100000); } else { - numDocs = atLeast(10000); + numDocs = atLeast(1000); } List docs = new ArrayList<>(); diff --git a/lucene/core/src/test/org/apache/lucene/index/TestIndexingSequenceNumbers.java b/lucene/core/src/test/org/apache/lucene/index/TestIndexingSequenceNumbers.java index 8d4c5c7903f..55aa6e036d8 100644 --- a/lucene/core/src/test/org/apache/lucene/index/TestIndexingSequenceNumbers.java +++ b/lucene/core/src/test/org/apache/lucene/index/TestIndexingSequenceNumbers.java @@ -72,6 +72,7 @@ public class TestIndexingSequenceNumbers extends LuceneTestCase { dir.close(); } + @Slow public void testStressUpdateSameID() throws Exception { int iters = atLeast(100); for(int iter=0;iter