don't make such enormous payloads, this is begging for an OOM with MemoryCodec

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1391886 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Robert Muir 2012-09-29 21:26:59 +00:00
parent d358395a37
commit 197d96548c
1 changed files with 2 additions and 2 deletions

View File

@ -226,9 +226,9 @@ public abstract class BasePostingsFormatTestCase extends LuceneTestCase {
int payloadSize;
if (random().nextInt(10) == 7) {
// 10% of the time create big payloads:
payloadSize = random().nextInt(50);
payloadSize = 1 + random().nextInt(3);
} else {
payloadSize = random().nextInt(10);
payloadSize = 1 + random().nextInt(1);
}
boolean fixedPayloads = random().nextBoolean();