Skip to content

Commit d30f07f

Browse files
Fixing test
1 parent 425e227 commit d30f07f

File tree

1 file changed

+1
-4
lines changed
  • x-pack/plugin/inference/qa/inference-service-tests/src/javaRestTest/java/org/elasticsearch/xpack/inference

1 file changed

+1
-4
lines changed

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

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -379,10 +379,7 @@ public void testUpdateEndpointWithWrongTaskTypeInURL() throws IOException {
379379
TaskType.TEXT_EMBEDDING
380380
)
381381
);
382-
assertThat(
383-
e.getMessage(),
384-
containsString("Requested task type [text_embedding] does not match the inference endpoint's task type [sparse_embedding]")
385-
);
382+
assertThat(e.getMessage(), containsString("Task type must match the task type of the existing endpoint"));
386383
}
387384

388385
public void testUpdateEndpointWithWrongTaskTypeInBody() throws IOException {

0 commit comments

Comments
 (0)