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/26 17:37:49 UTC

[lucene-solr] 01/02: @350 Buff this test.

This is an automated email from the ASF dual-hosted git repository.

markrmiller pushed a commit to branch reference_impl
in repository https://gitbox.apache.org/repos/asf/lucene-solr.git

commit 10c512cb372dfa4fb05ea1d5300e4876a5f500b2
Author: markrmiller@gmail.com <ma...@gmail.com>
AuthorDate: Sun Jul 26 12:36:47 2020 -0500

    @350 Buff this test.
---
 solr/core/src/test/org/apache/solr/request/TestFaceting.java | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/solr/core/src/test/org/apache/solr/request/TestFaceting.java b/solr/core/src/test/org/apache/solr/request/TestFaceting.java
index 0e9284e..2d5f33e 100644
--- a/solr/core/src/test/org/apache/solr/request/TestFaceting.java
+++ b/solr/core/src/test/org/apache/solr/request/TestFaceting.java
@@ -42,7 +42,7 @@ public class TestFaceting extends SolrTestCaseJ4 {
   @BeforeClass
   public static void beforeClass() throws Exception {
     // we need DVs on point fields to compute stats & facets
-    if (Boolean.getBoolean(NUMERIC_POINTS_SYSPROP)) System.setProperty(NUMERIC_DOCVALUES_SYSPROP,"true");
+    if (Boolean.getBoolean(NUMERIC_POINTS_SYSPROP)) System.setProperty(NUMERIC_DOCVALUES_SYSPROP, "true");
     initCore("solrconfig.xml","schema11.xml");
   }
 
@@ -149,7 +149,7 @@ public class TestFaceting extends SolrTestCaseJ4 {
 
   @Test
   public void testFacets() throws Exception {
-    StringBuilder sb = new StringBuilder();
+    StringBuilder sb = new StringBuilder(10000);
 
     // go over 4096 to test some of the buffer resizing
     for (int i=0; i<5000; i++) {
@@ -213,10 +213,10 @@ public class TestFaceting extends SolrTestCaseJ4 {
 
   @Test
   public void testRegularBig() throws Exception {
-    StringBuilder sb = new StringBuilder();
+    StringBuilder sb = new StringBuilder(5000);
 
     // go over 4096 to test some of the buffer resizing
-    int nTerms=7;
+    int nTerms=TEST_NIGHTLY ? 7 : 3;
     for (int i=0; i<nTerms; i++) {
       sb.append(t(i));
       sb.append(' ');
@@ -225,7 +225,7 @@ public class TestFaceting extends SolrTestCaseJ4 {
     int i1=1000000;
 
     // int iter=65536+10;
-    int iter=1000;
+    int iter= TEST_NIGHTLY ? 1000 : 100;
     int commitInterval=iter/9;
 
     for (int i=0; i<iter; i++) {