Skip to content

Commit

Permalink
SOLR-16585: bypass empty update in the test (#1454)
Browse files Browse the repository at this point in the history
  • Loading branch information
mkhludnev authored and risdenk committed Jan 22, 2024
1 parent 1dd49dd commit 8c318fd
Showing 1 changed file with 4 additions and 2 deletions.
Expand Up @@ -446,13 +446,15 @@ public void testMatchAllPaging() throws Exception {
doc.addField("name", "doc" + i);
doc.addField("price", "" + i);
docs.add(doc);
if (rarely()) {
if (rarely() && !docs.isEmpty()) {
client.add(docs);
client.commit();
docs.clear();
}
}
client.add(docs);
if (!docs.isEmpty()) {
client.add(docs);
}
if (random().nextBoolean()) {
client.commit();
} else {
Expand Down

0 comments on commit 8c318fd

Please sign in to comment.