Skip to content

Commit 69ce68d

Browse files
committed
Update min numDocs to 2 in testShardFieldStats
1 parent 625639c commit 69ce68d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

server/src/test/java/org/elasticsearch/index/shard/IndexShardTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1884,7 +1884,7 @@ public void testShardFieldStats() throws IOException {
18841884
assertThat(stats.fieldUsages(), equalTo(0L));
18851885
assertThat(stats.postingsInMemoryBytes(), equalTo(0L));
18861886
// index some documents
1887-
int numDocs = between(1, 10);
1887+
int numDocs = between(2, 10);
18881888
for (int i = 0; i < numDocs; i++) {
18891889
indexDoc(shard, "_doc", "first_" + i, """
18901890
{
@@ -1922,7 +1922,7 @@ public void testShardFieldStats() throws IOException {
19221922
}
19231923
assertThat(shard.getShardFieldStats(), sameInstance(stats));
19241924
// index more docs
1925-
numDocs = between(1, 10);
1925+
numDocs = between(2, 10);
19261926
for (int i = 0; i < numDocs; i++) {
19271927
indexDoc(shard, "_doc", "first_" + i, """
19281928
{

0 commit comments

Comments
 (0)