You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by mi...@apache.org on 2012/11/15 17:16:32 UTC
svn commit: r1409864 - in /lucene/dev/branches/branch_4x: ./ lucene/
lucene/core/
lucene/core/src/test/org/apache/lucene/index/TestBagOfPositions.java
lucene/core/src/test/org/apache/lucene/index/TestBagOfPostings.java
Author: mikemccand
Date: Thu Nov 15 16:16:31 2012
New Revision: 1409864
URL: http://svn.apache.org/viewvc?rev=1409864&view=rev
Log:
reduce cost of test if PF is SimpleText
Modified:
lucene/dev/branches/branch_4x/ (props changed)
lucene/dev/branches/branch_4x/lucene/ (props changed)
lucene/dev/branches/branch_4x/lucene/core/ (props changed)
lucene/dev/branches/branch_4x/lucene/core/src/test/org/apache/lucene/index/TestBagOfPositions.java
lucene/dev/branches/branch_4x/lucene/core/src/test/org/apache/lucene/index/TestBagOfPostings.java
Modified: lucene/dev/branches/branch_4x/lucene/core/src/test/org/apache/lucene/index/TestBagOfPositions.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_4x/lucene/core/src/test/org/apache/lucene/index/TestBagOfPositions.java?rev=1409864&r1=1409863&r2=1409864&view=diff
==============================================================================
--- lucene/dev/branches/branch_4x/lucene/core/src/test/org/apache/lucene/index/TestBagOfPositions.java (original)
+++ lucene/dev/branches/branch_4x/lucene/core/src/test/org/apache/lucene/index/TestBagOfPositions.java Thu Nov 15 16:16:31 2012
@@ -46,6 +46,12 @@ public class TestBagOfPositions extends
List<String> postingsList = new ArrayList<String>();
int numTerms = atLeast(300);
final int maxTermsPerDoc = _TestUtil.nextInt(random(), 10, 20);
+ boolean isSimpleText = "SimpleText".equals(_TestUtil.getPostingsFormat("field"));
+
+ if (isSimpleText && (TEST_NIGHTLY || RANDOM_MULTIPLIER > 1)) {
+ // Otherwise test can take way too long (> 2 hours)
+ numTerms /= 2;
+ }
if (VERBOSE) {
System.out.println("maxTermsPerDoc=" + maxTermsPerDoc);
System.out.println("numTerms=" + numTerms);
Modified: lucene/dev/branches/branch_4x/lucene/core/src/test/org/apache/lucene/index/TestBagOfPostings.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_4x/lucene/core/src/test/org/apache/lucene/index/TestBagOfPostings.java?rev=1409864&r1=1409863&r2=1409864&view=diff
==============================================================================
--- lucene/dev/branches/branch_4x/lucene/core/src/test/org/apache/lucene/index/TestBagOfPostings.java (original)
+++ lucene/dev/branches/branch_4x/lucene/core/src/test/org/apache/lucene/index/TestBagOfPostings.java Thu Nov 15 16:16:31 2012
@@ -46,7 +46,7 @@ public class TestBagOfPostings extends L
boolean isSimpleText = "SimpleText".equals(_TestUtil.getPostingsFormat("field"));
- if (isSimpleText && TEST_NIGHTLY) {
+ if (isSimpleText && (TEST_NIGHTLY || RANDOM_MULTIPLIER > 1)) {
// Otherwise test can take way too long (> 2 hours)
numTerms /= 2;
}