diff --git a/lucene/core/src/test/org/apache/lucene/analysis/TestLookaheadTokenFilter.java b/lucene/core/src/test/org/apache/lucene/analysis/TestLookaheadTokenFilter.java index 7508bf9f38b..50539e55513 100644 --- a/lucene/core/src/test/org/apache/lucene/analysis/TestLookaheadTokenFilter.java +++ b/lucene/core/src/test/org/apache/lucene/analysis/TestLookaheadTokenFilter.java @@ -32,8 +32,9 @@ public class TestLookaheadTokenFilter extends BaseTokenStreamTestCase { TokenStream output = new MockRandomLookaheadTokenFilter(random, tokenizer); return new TokenStreamComponents(tokenizer, output); } - }; - checkRandomData(random(), a, 200*RANDOM_MULTIPLIER, 8192); + }; + int maxLength = TEST_NIGHTLY ? 8192 : 1024; + checkRandomData(random(), a, 50*RANDOM_MULTIPLIER, maxLength); } private static class NeverPeeksLookaheadTokenFilter extends LookaheadTokenFilter { @@ -60,8 +61,9 @@ public class TestLookaheadTokenFilter extends BaseTokenStreamTestCase { TokenStream output = new NeverPeeksLookaheadTokenFilter(tokenizer); return new TokenStreamComponents(tokenizer, output); } - }; - checkRandomData(random(), a, 200*RANDOM_MULTIPLIER, 8192); + }; + int maxLength = TEST_NIGHTLY ? 8192 : 1024; + checkRandomData(random(), a, 50*RANDOM_MULTIPLIER, maxLength); } public void testMissedFirstToken() throws Exception { diff --git a/lucene/core/src/test/org/apache/lucene/util/fst/TestBytesStore.java b/lucene/core/src/test/org/apache/lucene/util/fst/TestBytesStore.java index 390bef8b46f..f5db2b610fc 100644 --- a/lucene/core/src/test/org/apache/lucene/util/fst/TestBytesStore.java +++ b/lucene/core/src/test/org/apache/lucene/util/fst/TestBytesStore.java @@ -31,8 +31,9 @@ public class TestBytesStore extends LuceneTestCase { public void testRandom() throws Exception { final int iters = atLeast(10); + final int maxBytes = TEST_NIGHTLY ? 200000 : 20000; for(int iter=0;iter