Skip to content

Commit

Permalink
[8.x] Fix off-by-one error in `RecoverySourcePruneMergePolicyTests#te…
Browse files Browse the repository at this point in the history
…stPruneSome` (#118973)

Backports #118944 to 8.x
  • Loading branch information
arteam authored Dec 18, 2024
1 parent a355f19 commit fe0f14f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
import java.util.stream.Collectors;

import static org.hamcrest.Matchers.equalTo;
import static org.hamcrest.Matchers.greaterThan;
import static org.hamcrest.Matchers.greaterThanOrEqualTo;

public class RecoverySourcePruneMergePolicyTests extends ESTestCase {

Expand Down Expand Up @@ -191,7 +191,7 @@ public void testPruneSome() throws IOException {
}
assertEquals(i, extra_source.docID());
if (syntheticRecoverySource) {
assertThat(extra_source.longValue(), greaterThan(10L));
assertThat(extra_source.longValue(), greaterThanOrEqualTo(10L));
} else {
assertThat(extra_source.longValue(), equalTo(1L));
}
Expand Down

0 comments on commit fe0f14f

Please sign in to comment.