Skip to content

Apache Lucene open-source search software

SOLR-5794: dial back the randomized constants so we don't blow up the world when running with -Dnightly=true -Dtests.multiplier=2

Chris M. Hostetter474373d7b3d5
diff --git a/solr/core/src/test/org/apache/solr/CursorPagingTest.java b/solr/core/src/test/org/apache/solr/CursorPagingTest.java
index bc25227bbf9..7afaa6f397c 100644
--- a/solr/core/src/test/org/apache/solr/CursorPagingTest.java
+++ b/solr/core/src/test/org/apache/solr/CursorPagingTest.java
@@ -554,7 +554,7 @@ public class CursorPagingTest extends SolrTestCaseJ4 {
final Collection<String> allFieldNames = getAllSortFieldNames();
final int initialDocs = TestUtil.nextInt(random(), 100, 200);
- final int totalDocs = atLeast(5000);
+ final int totalDocs = atLeast(500);
// start with a smallish number of documents, and test that we can do a full walk using a
// sort on *every* field in the schema...
@@ -585,7 +585,7 @@ public class CursorPagingTest extends SolrTestCaseJ4 {
}
assertU(commit());
- final int numRandomSorts = atLeast(5);
+ final int numRandomSorts = atLeast(3);
for (int i = 0; i < numRandomSorts; i++) {
final String sort = buildRandomSort(allFieldNames);
final String rows = "" + TestUtil.nextInt(random(), 63, 113);
@@ -950,7 +950,7 @@ public class CursorPagingTest extends SolrTestCaseJ4 {
Collections.shuffle(shuffledNames, random());
final StringBuilder result = new StringBuilder();
- final int numClauses = atLeast(2);
+ final int numClauses = TestUtil.nextInt(random(), 2, 5);
for (int i = 0; i < numClauses; i++) {
String field = shuffledNames.get(i);
diff --git a/solr/core/src/test/org/apache/solr/cloud/DistribCursorPagingTest.java b/solr/core/src/test/org/apache/solr/cloud/DistribCursorPagingTest.java
index e0b310a141b..835bbd20742 100644
--- a/solr/core/src/test/org/apache/solr/cloud/DistribCursorPagingTest.java
+++ b/solr/core/src/test/org/apache/solr/cloud/DistribCursorPagingTest.java
@@ -518,7 +518,7 @@ public class DistribCursorPagingTest extends AbstractFullDistribZkTestBase {
final Collection<String> allFieldNames = getAllSortFieldNames();
final int numInitialDocs = TestUtil.nextInt(random(), 100, 200);
- final int totalDocs = atLeast(5000);
+ final int totalDocs = atLeast(500);
// start with a smallish number of documents, and test that we can do a full walk using a
// sort on *every* field in the schema...
@@ -575,7 +575,7 @@ public class DistribCursorPagingTest extends AbstractFullDistribZkTestBase {
}
commit();
- final int numRandomSorts = atLeast(5);
+ final int numRandomSorts = atLeast(3);
for (int i = 0; i < numRandomSorts; i++) {
final String sort = CursorPagingTest.buildRandomSort(allFieldNames);
final String rows = "" + TestUtil.nextInt(random(), 63, 113);