Skip to content

Commit e834317

Browse files
authored
Fix release tests for chunk-rescorer tests behind feature flag (elastic#134729)
1 parent aea67ba commit e834317

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

x-pack/plugin/inference/src/yamlRestTest/java/org/elasticsearch/xpack/inference/InferenceRestIT.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ public class InferenceRestIT extends ESClientYamlSuiteTestCase {
4242
public InferenceRestIT(final ClientYamlTestCandidate testCandidate) {
4343
super(testCandidate);
4444
String testPath = testCandidate.getTestPath();
45-
if (testPath.startsWith("inference/70_text_similarity_rank_retriever") && testPath.toLowerCase(Locale.ROOT).contains("snippet")) {
45+
if (testPath.startsWith("inference/70_text_similarity_rank_retriever")
46+
&& (testPath.toLowerCase(Locale.ROOT).contains("snippet") || testPath.toLowerCase(Locale.ROOT).contains("chunk_rescorer"))) {
4647
assumeTrue("Rerank snippets does not work in release builds", Build.current().isSnapshot());
4748
}
4849
}

0 commit comments

Comments
 (0)