mirror of https://github.com/apache/lucene.git
tone down test
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1641978 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
30816e09e8
commit
7ae4a36a77
|
@ -230,7 +230,7 @@ public class TestMockAnalyzer extends BaseTokenStreamTestCase {
|
||||||
|
|
||||||
/** blast some random strings through differently configured tokenizers */
|
/** blast some random strings through differently configured tokenizers */
|
||||||
public void testRandomRegexps() throws Exception {
|
public void testRandomRegexps() throws Exception {
|
||||||
int iters = atLeast(30);
|
int iters = TEST_NIGHTLY ? atLeast(30) : atLeast(1);
|
||||||
for (int i = 0; i < iters; i++) {
|
for (int i = 0; i < iters; i++) {
|
||||||
final CharacterRunAutomaton dfa = new CharacterRunAutomaton(AutomatonTestUtil.randomAutomaton(random()), Integer.MAX_VALUE);
|
final CharacterRunAutomaton dfa = new CharacterRunAutomaton(AutomatonTestUtil.randomAutomaton(random()), Integer.MAX_VALUE);
|
||||||
final boolean lowercase = random().nextBoolean();
|
final boolean lowercase = random().nextBoolean();
|
||||||
|
@ -248,7 +248,7 @@ public class TestMockAnalyzer extends BaseTokenStreamTestCase {
|
||||||
}
|
}
|
||||||
|
|
||||||
public void testForwardOffsets() throws Exception {
|
public void testForwardOffsets() throws Exception {
|
||||||
int num = atLeast(10000);
|
int num = atLeast(1000);
|
||||||
for (int i = 0; i < num; i++) {
|
for (int i = 0; i < num; i++) {
|
||||||
String s = TestUtil.randomHtmlishString(random(), 20);
|
String s = TestUtil.randomHtmlishString(random(), 20);
|
||||||
StringReader reader = new StringReader(s);
|
StringReader reader = new StringReader(s);
|
||||||
|
|
Loading…
Reference in New Issue