mirror of
https://github.com/elastic/elasticsearch.git
synced 2025-06-27 17:10:22 -04:00
Fixing ReindexDataStreamStatusTests so that the in progress set max size is not less than min size (#118957)
It is currently possible when we mutate a status object that we ask for a random set for the inProgress field where the max size of the set is less than the min size. This fixes that.
This commit is contained in:
parent
1141edee47
commit
e0f4b01fb8
2 changed files with 2 additions and 2 deletions
|
@ -74,7 +74,7 @@ public class ReindexDataStreamEnrichedStatusTests extends AbstractWireSerializin
|
|||
}
|
||||
|
||||
private Set<String> randomSet(int minSize) {
|
||||
return randomSet(minSize, 100, () -> randomAlphaOfLength(50));
|
||||
return randomSet(minSize, Math.max(minSize, 100), () -> randomAlphaOfLength(50));
|
||||
}
|
||||
|
||||
private List<Tuple<String, Exception>> randomErrorList() {
|
||||
|
|
|
@ -70,7 +70,7 @@ public class ReindexDataStreamStatusTests extends AbstractWireSerializingTestCas
|
|||
}
|
||||
|
||||
private Set<String> randomSet(int minSize) {
|
||||
return randomSet(minSize, 100, () -> randomAlphaOfLength(50));
|
||||
return randomSet(minSize, Math.max(minSize, 100), () -> randomAlphaOfLength(50));
|
||||
}
|
||||
|
||||
private List<Tuple<String, Exception>> randomErrorList() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue