mirror of https://github.com/apache/lucene.git
Fix another TestDisiPriorityQueue bug
This commit is contained in:
parent
bd06cebfc2
commit
f943a57ebe
|
@ -43,7 +43,7 @@ public class TestDisiPriorityQueue extends LuceneTestCase {
|
|||
pq.add(w);
|
||||
}
|
||||
} else {
|
||||
if (r.nextInt(10) < 2) {
|
||||
if (r.nextInt(10) < 2 && size > 1) {
|
||||
int len = random().nextInt(1, size);
|
||||
for (int i = 0; i < len; i++) {
|
||||
pq.add(all[i]);
|
||||
|
|
Loading…
Reference in New Issue