Skip to content

Commit c766645

Browse files
committed
adjust retaining_seq_no in test
1 parent 8f7e6e8 commit c766645

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ public void testAlwaysFetchLatestRetentionLeases() {
125125
final Collection<RetentionLease> leases = new ArrayList<>();
126126
final int numLeases = randomIntBetween(0, 10);
127127
for (int i = 0; i < numLeases; i++) {
128-
leases.add(new RetentionLease(Integer.toString(i), randomLongBetween(NO_OPS_PERFORMED, 1000), randomNonNegativeLong(), "test"));
128+
leases.add(new RetentionLease(Integer.toString(i), randomLongBetween(0, 1000), randomNonNegativeLong(), "test"));
129129
}
130130
final Supplier<Collection<RetentionLease>> leasesSupplier = () -> Collections.unmodifiableCollection(new ArrayList<>(leases));
131131
final SoftDeletesPolicy policy =

0 commit comments

Comments
 (0)