Skip to content

Commit 49f991b

Browse files
authored
[test] Fix RecoverySourcePruneMergePolicyTests#testPruneSome (#118944)
The `extra_source_size` field is set to a value between 10 and 10000 inclusive, so the assertion should be `greaterThanOrEqualTo(10)` rather than `greaterThan(10)`. See #114618 Resolve #118728
1 parent 6e72516 commit 49f991b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

server/src/test/java/org/elasticsearch/index/engine/RecoverySourcePruneMergePolicyTests.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
import java.util.stream.Collectors;
4545

4646
import static org.hamcrest.Matchers.equalTo;
47-
import static org.hamcrest.Matchers.greaterThan;
47+
import static org.hamcrest.Matchers.greaterThanOrEqualTo;
4848

4949
public class RecoverySourcePruneMergePolicyTests extends ESTestCase {
5050

@@ -191,7 +191,7 @@ public void testPruneSome() throws IOException {
191191
}
192192
assertEquals(i, extra_source.docID());
193193
if (syntheticRecoverySource) {
194-
assertThat(extra_source.longValue(), greaterThan(10L));
194+
assertThat(extra_source.longValue(), greaterThanOrEqualTo(10L));
195195
} else {
196196
assertThat(extra_source.longValue(), equalTo(1L));
197197
}

0 commit comments

Comments
 (0)