Skip to content

Commit 56b4cb5

Browse files
authored
[Test] Fix ShardsCapacityHealthIndicatorServiceStatelessTests (#136343)
Ensure the lower-bound of the randomness is valid for test. Resolves: #136303
1 parent 175fe4c commit 56b4cb5

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

muted-tests.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -627,9 +627,6 @@ tests:
627627
- class: org.elasticsearch.xpack.esql.qa.single_node.GenerativeForkIT
628628
method: test {csv-spec:string.SpaceNegative}
629629
issue: https://github.com/elastic/elasticsearch/issues/136249
630-
- class: org.elasticsearch.health.node.ShardsCapacityHealthIndicatorServiceStatelessTests
631-
method: testIndicatorYieldsGreenInCaseThereIsRoom
632-
issue: https://github.com/elastic/elasticsearch/issues/136303
633630
- class: org.elasticsearch.index.store.AsyncDirectIODirectoryTests
634631
method: testIsLoadedOnSlice
635632
issue: https://github.com/elastic/elasticsearch/issues/136331

server/src/test/java/org/elasticsearch/health/node/ShardsCapacityHealthIndicatorServiceStatelessTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ public void doTestIndicatorYieldsYellowInCaseThereIsNotEnoughRoom(HealthStatus s
145145
}
146146

147147
private static int randomValidMaxShards() {
148-
return randomIntBetween(10, 100);
148+
return randomIntBetween(15, 100);
149149
}
150150

151151
private Map<String, Object> xContentToMap(ToXContent xcontent) throws IOException {

0 commit comments

Comments
 (0)