Skip to content

Commit

Permalink
[ML] Fix streaming IT
Browse files Browse the repository at this point in the history
  • Loading branch information
prwhelan committed Oct 24, 2024
1 parent 4fb7a4f commit ff3c94a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
3 changes: 0 additions & 3 deletions muted-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -167,9 +167,6 @@ tests:
- class: org.elasticsearch.xpack.esql.ccq.MultiClusterSpecIT
method: test {categorize.Categorize}
issue: https://github.com/elastic/elasticsearch/issues/113428
- class: org.elasticsearch.xpack.inference.InferenceCrudIT
method: testSupportedStream
issue: https://github.com/elastic/elasticsearch/issues/113430
- class: org.elasticsearch.integration.KibanaUserRoleIntegTests
method: testFieldMappings
issue: https://github.com/elastic/elasticsearch/issues/113592
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -307,8 +307,7 @@ public void testSupportedStream() throws Exception {
assertEquals(modelId, singleModel.get("inference_id"));
assertEquals(TaskType.COMPLETION.toString(), singleModel.get("task_type"));

var input = IntStream.range(1, randomInt(10)).mapToObj(i -> randomAlphaOfLength(10)).toList();

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

Expand Down

0 comments on commit ff3c94a

Please sign in to comment.