Skip to content

Commit b95f99f

Browse files
authored
[8.x] [Inference API] Fix node local rate limit calculator tests for non-snapshot builds (elastic#121527) (elastic#121674)
1 parent af9de24 commit b95f99f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

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)