Skip to content

Commit ac34cad

Browse files
authored
[Inference API] Fix node local rate limit calculator tests for non-snapshot builds (#121527)
1 parent 7f284d3 commit ac34cad

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

muted-tests.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -370,8 +370,6 @@ tests:
370370
- class: org.elasticsearch.backwards.MixedClusterClientYamlTestSuiteIT
371371
method: test {p0=search.vectors/42_knn_search_int4_flat/Vector similarity with filter only}
372372
issue: https://github.com/elastic/elasticsearch/issues/121412
373-
- class: org.elasticsearch.xpack.inference.common.InferenceServiceNodeLocalRateLimitCalculatorTests
374-
issue: https://github.com/elastic/elasticsearch/issues/121294
375373
- class: org.elasticsearch.xpack.ml.integration.ClassificationIT
376374
method: testDependentVariableIsAliasToKeyword
377375
issue: https://github.com/elastic/elasticsearch/issues/121492

x-pack/plugin/inference/src/test/java/org/elasticsearch/xpack/inference/common/InferenceServiceNodeLocalRateLimitCalculatorTests.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,11 @@ public class InferenceServiceNodeLocalRateLimitCalculatorTests extends ESIntegTe
3333

3434
public void setUp() throws Exception {
3535
super.setUp();
36+
assumeTrue(
37+
"If inference_cluster_aware_rate_limiting_feature_flag_enabled=false we'll fallback to "
38+
+ "NoopNodeLocalRateLimitCalculator, which shouldn't be tested by this class.",
39+
InferenceAPIClusterAwareRateLimitingFeature.INFERENCE_API_CLUSTER_AWARE_RATE_LIMITING_FEATURE_FLAG.isEnabled()
40+
);
3641
}
3742

3843
public void testInitialClusterGrouping_Correct() throws Exception {

0 commit comments

Comments
 (0)