From 7ae4a36a7763d206cf63389ab53f8260a6508f40 Mon Sep 17 00:00:00 2001 From: Robert Muir Date: Thu, 27 Nov 2014 01:06:36 +0000 Subject: [PATCH] tone down test git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1641978 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/test/org/apache/lucene/analysis/TestMockAnalyzer.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lucene/core/src/test/org/apache/lucene/analysis/TestMockAnalyzer.java b/lucene/core/src/test/org/apache/lucene/analysis/TestMockAnalyzer.java index 0bc7f087c86..485ea3f667b 100644 --- a/lucene/core/src/test/org/apache/lucene/analysis/TestMockAnalyzer.java +++ b/lucene/core/src/test/org/apache/lucene/analysis/TestMockAnalyzer.java @@ -230,7 +230,7 @@ public class TestMockAnalyzer extends BaseTokenStreamTestCase { /** blast some random strings through differently configured tokenizers */ public void testRandomRegexps() throws Exception { - int iters = atLeast(30); + int iters = TEST_NIGHTLY ? atLeast(30) : atLeast(1); for (int i = 0; i < iters; i++) { final CharacterRunAutomaton dfa = new CharacterRunAutomaton(AutomatonTestUtil.randomAutomaton(random()), Integer.MAX_VALUE); final boolean lowercase = random().nextBoolean(); @@ -248,7 +248,7 @@ public class TestMockAnalyzer extends BaseTokenStreamTestCase { } public void testForwardOffsets() throws Exception { - int num = atLeast(10000); + int num = atLeast(1000); for (int i = 0; i < num; i++) { String s = TestUtil.randomHtmlishString(random(), 20); StringReader reader = new StringReader(s);