You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by ma...@apache.org on 2020/07/29 00:20:21 UTC
[lucene-solr] branch reference_impl_dev updated: @438 Buff test for
non Nightly.
This is an automated email from the ASF dual-hosted git repository.
markrmiller pushed a commit to branch reference_impl_dev
in repository https://gitbox.apache.org/repos/asf/lucene-solr.git
The following commit(s) were added to refs/heads/reference_impl_dev by this push:
new 9c0dbf9 @438 Buff test for non Nightly.
9c0dbf9 is described below
commit 9c0dbf918e0dcc7f0d850242bd4a73a94b681ccc
Author: markrmiller@gmail.com <ma...@gmail.com>
AuthorDate: Tue Jul 28 19:19:58 2020 -0500
@438 Buff test for non Nightly.
---
.../src/test/org/apache/solr/core/snapshots/TestSolrCoreSnapshots.java | 2 +-
solr/core/src/test/org/apache/solr/handler/BackupRestoreUtils.java | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/solr/core/src/test/org/apache/solr/core/snapshots/TestSolrCoreSnapshots.java b/solr/core/src/test/org/apache/solr/core/snapshots/TestSolrCoreSnapshots.java
index 5222641..6c08760 100644
--- a/solr/core/src/test/org/apache/solr/core/snapshots/TestSolrCoreSnapshots.java
+++ b/solr/core/src/test/org/apache/solr/core/snapshots/TestSolrCoreSnapshots.java
@@ -205,7 +205,7 @@ public class TestSolrCoreSnapshots extends SolrCloudTestCase {
masterClient.deleteByQuery("id:" + i);
}
//Add a few more
- int moreAdds = TestUtil.nextInt(random(), 1, 100);
+ int moreAdds = TestUtil.nextInt(random(), 1, TEST_NIGHTLY ? 100 : 15);
for (int i=0; i<moreAdds; i++) {
SolrInputDocument doc = new SolrInputDocument();
doc.addField("id", i + nDocs);
diff --git a/solr/core/src/test/org/apache/solr/handler/BackupRestoreUtils.java b/solr/core/src/test/org/apache/solr/handler/BackupRestoreUtils.java
index 74add18..2e7581f 100644
--- a/solr/core/src/test/org/apache/solr/handler/BackupRestoreUtils.java
+++ b/solr/core/src/test/org/apache/solr/handler/BackupRestoreUtils.java
@@ -45,7 +45,7 @@ public class BackupRestoreUtils extends SolrTestCase {
masterClient.deleteByQuery(collectionName, "*:*");
Random random = new Random(docsSeed);// use a constant seed for the whole test run so that we can easily re-index.
- int nDocs = TestUtil.nextInt(random, 1, 100);
+ int nDocs = TestUtil.nextInt(random, 1, TEST_NIGHTLY ? 100 : 14);
log.info("Indexing {} test docs", nDocs);
List<SolrInputDocument> docs = new ArrayList<>(nDocs);