Skip to content

Commit 32ad8f0

Browse files
committed
Fix flakey test dependent on model or linux optimized model name
1 parent 62fffc2 commit 32ad8f0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

x-pack/plugin/inference/src/test/java/org/elasticsearch/xpack/inference/services/elasticsearch/MultilingualE5SmallModelTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
import org.elasticsearch.test.ESTestCase;
1212
import org.elasticsearch.xpack.inference.chunking.SentenceBoundaryChunkingSettings;
1313

14-
import static org.hamcrest.Matchers.equalTo;
14+
import static org.hamcrest.Matchers.containsString;
1515

1616
public class MultilingualE5SmallModelTests extends ESTestCase {
1717

@@ -29,7 +29,7 @@ public void testHugeChunkingSettings() {
2929

3030
assertThat(
3131
expectedException.getMessage(),
32-
equalTo(".multilingual-e5-small does not support chunk sizes larger than 300. Requested chunk size: 10000")
32+
containsString("does not support chunk sizes larger than 300. Requested chunk size: 10000")
3333
);
3434
}
3535
}

0 commit comments

Comments
 (0)