mirror of https://github.com/apache/lucene.git
Fix test failure on empty paged bytes.
This commit is contained in:
parent
b3ef869681
commit
194a500323
|
@ -116,9 +116,9 @@ public class TestPagedBytes extends LuceneTestCase {
|
|||
final DataOutput out = p.getDataOutput();
|
||||
final int numBytes;
|
||||
if (TEST_NIGHTLY) {
|
||||
numBytes = random().nextInt(10_000_000);
|
||||
numBytes = TestUtil.nextInt(random(), 1, 10_000_000);
|
||||
} else {
|
||||
numBytes = random().nextInt(1_000_000);
|
||||
numBytes = TestUtil.nextInt(random(), 1, 1_000_000);
|
||||
}
|
||||
|
||||
final byte[] answer = new byte[numBytes];
|
||||
|
|
Loading…
Reference in New Issue