From b0d84d2aada481ed8a16bbc2e17ecdbe61fd314a Mon Sep 17 00:00:00 2001 From: Robert Muir Date: Wed, 20 Jul 2011 02:25:16 +0000 Subject: [PATCH] LUCENE-3313: more nightly tuning git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1148602 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/lucene/util/LuceneTestCase.java | 4 ++-- .../test/org/apache/lucene/index/TestStressAdvance.java | 2 +- .../org/apache/lucene/search/TestNumericRangeQuery32.java | 8 ++++---- .../org/apache/lucene/search/TestNumericRangeQuery64.java | 8 ++++---- .../test/org/apache/lucene/search/TestPrefixRandom.java | 4 ++-- lucene/src/test/org/apache/lucene/util/fst/TestFSTs.java | 4 ++-- 6 files changed, 15 insertions(+), 15 deletions(-) diff --git a/lucene/src/test-framework/org/apache/lucene/util/LuceneTestCase.java b/lucene/src/test-framework/org/apache/lucene/util/LuceneTestCase.java index 957f9686313..59effca02b3 100644 --- a/lucene/src/test-framework/org/apache/lucene/util/LuceneTestCase.java +++ b/lucene/src/test-framework/org/apache/lucene/util/LuceneTestCase.java @@ -770,9 +770,9 @@ public abstract class LuceneTestCase extends Assert { * is active and {@link #RANDOM_MULTIPLIER}. */ public static boolean rarely(Random random) { - int p = TEST_NIGHTLY ? 25 : 5; + int p = TEST_NIGHTLY ? 10 : 5; p += (p * Math.log(RANDOM_MULTIPLIER)); - int min = 100 - Math.min(p, 90); // never more than 90 + int min = 100 - Math.min(p, 50); // never more than 50 return random.nextInt(100) >= min; } diff --git a/lucene/src/test/org/apache/lucene/index/TestStressAdvance.java b/lucene/src/test/org/apache/lucene/index/TestStressAdvance.java index ceb6ceebdd5..33710bfd8fd 100644 --- a/lucene/src/test/org/apache/lucene/index/TestStressAdvance.java +++ b/lucene/src/test/org/apache/lucene/index/TestStressAdvance.java @@ -40,7 +40,7 @@ public class TestStressAdvance extends LuceneTestCase { doc.add(f); final Field idField = newField("id", "", Field.Store.YES, Field.Index.NOT_ANALYZED_NO_NORMS); doc.add(idField); - int num = atLeast(5000); + int num = atLeast(4097); for(int id=0;id