Skip to content

Commit ab4342c

Browse files
dnhatnafoucret
authored andcommitted
Skip rerank tests in mixed clusters (#126415)
If the clusters don't support inference test services, skip tests that require inference services. Hence, we should check for rerank tests. Relates #123074
1 parent ac63795 commit ab4342c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

x-pack/plugin/esql/qa/server/src/main/java/org/elasticsearch/xpack/esql/qa/rest/EsqlSpecTestCase.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ public final void test() throws Throwable {
184184
}
185185

186186
protected void shouldSkipTest(String testName) throws IOException {
187-
if (testCase.requiredCapabilities.contains("semantic_text_field_caps")) {
187+
if (testCase.requiredCapabilities.contains("semantic_text_field_caps") || testCase.requiredCapabilities.contains("rerank")) {
188188
assumeTrue("Inference test service needs to be supported for semantic_text", supportsInferenceTestService());
189189
}
190190
checkCapabilities(adminClient(), testFeatureService, testName, testCase);

0 commit comments

Comments
 (0)