Skip to content

Commit c9a9738

Browse files
authored
[ML] Fix streaming IT (#115543) (#115663)
Fix #113430
1 parent 043f45a commit c9a9738

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

muted-tests.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -227,9 +227,6 @@ tests:
227227
- class: org.elasticsearch.xpack.esql.ccq.MultiClusterSpecIT
228228
method: test {categorize.Categorize}
229229
issue: https://github.com/elastic/elasticsearch/issues/113428
230-
- class: org.elasticsearch.xpack.inference.InferenceCrudIT
231-
method: testSupportedStream
232-
issue: https://github.com/elastic/elasticsearch/issues/113430
233230
- class: org.elasticsearch.xpack.ml.integration.MlJobIT
234231
method: testOutOfOrderData
235232
issue: https://github.com/elastic/elasticsearch/issues/113477

x-pack/plugin/inference/qa/inference-service-tests/src/javaRestTest/java/org/elasticsearch/xpack/inference/InferenceCrudIT.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -307,8 +307,7 @@ public void testSupportedStream() throws Exception {
307307
assertEquals(modelId, singleModel.get("inference_id"));
308308
assertEquals(TaskType.COMPLETION.toString(), singleModel.get("task_type"));
309309

310-
var input = IntStream.range(1, randomInt(10)).mapToObj(i -> randomAlphaOfLength(10)).toList();
311-
310+
var input = IntStream.range(1, 2 + randomInt(8)).mapToObj(i -> randomAlphaOfLength(10)).toList();
312311
try {
313312
var events = streamInferOnMockService(modelId, TaskType.COMPLETION, input);
314313

0 commit comments

Comments
 (0)