Skip to content

Commit bc8bc42

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

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
@@ -174,7 +174,7 @@ public final void test() throws Throwable {
174174
}
175175

176176
protected void shouldSkipTest(String testName) throws IOException {
177-
if (testCase.requiredCapabilities.contains("semantic_text_field_caps")) {
177+
if (testCase.requiredCapabilities.contains("semantic_text_field_caps") || testCase.requiredCapabilities.contains("rerank")) {
178178
assumeTrue("Inference test service needs to be supported for semantic_text", supportsInferenceTestService());
179179
}
180180
checkCapabilities(adminClient(), testFeatureService, testName, testCase);

0 commit comments

Comments
 (0)