mirror of https://github.com/apache/lucene.git
fix test OOM
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1137479 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
aaaaa42d54
commit
22c6d6e93d
|
@ -285,7 +285,7 @@ public class TestPerFieldCodecSupport extends LuceneTestCase {
|
|||
for (Codec codec : codecs) {
|
||||
provider.register(codec);
|
||||
}
|
||||
int num = atLeast(30);
|
||||
int num = _TestUtil.nextInt(random, 30, 60);
|
||||
for (int j = 0; j < num; j++) {
|
||||
provider.setFieldCodec("" + j, codecs[random.nextInt(codecs.length)].name);
|
||||
}
|
||||
|
@ -296,7 +296,6 @@ public class TestPerFieldCodecSupport extends LuceneTestCase {
|
|||
IndexWriter writer = newWriter(dir, config);
|
||||
for (int j = 0; j < docsPerRound; j++) {
|
||||
final Document doc = new Document();
|
||||
num = atLeast(30);
|
||||
for (int k = 0; k < num; k++) {
|
||||
Field field = newField("" + k, _TestUtil
|
||||
.randomRealisticUnicodeString(random, 128), indexValue[random
|
||||
|
|
Loading…
Reference in New Issue