You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: x-pack/plugin/inference/src/test/java/org/elasticsearch/xpack/inference/services/validation/DenseEmbeddingModelValidatorTests.java
+4-2Lines changed: 4 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -104,7 +104,8 @@ public void testValidate_ServiceReturnsNonTextEmbeddingResults() {
104
104
assertThat(
105
105
captor.getValue().getMessage(),
106
106
Matchers.is(
107
-
"Validation call did not return expected results type. Expected a result of type [DenseEmbeddingResults] got [SparseEmbeddingResults]"
107
+
"Validation call did not return expected results type. "
108
+
+ "Expected a result of type [DenseEmbeddingResults] got [SparseEmbeddingResults]"
108
109
)
109
110
);
110
111
@@ -142,7 +143,8 @@ public void testValidate_DimensionsSetByUserDoNotEqualEmbeddingSize() {
142
143
captor.getValue().getMessage(),
143
144
Matchers.is(
144
145
Strings.format(
145
-
"The retrieved embeddings size [%s] does not match the size specified in the settings [%s]. Please recreate the [%s] configuration with the correct dimensions",
146
+
"The retrieved embeddings size [%s] does not match the size specified in the settings [%s]. "
147
+
+ "Please recreate the [%s] configuration with the correct dimensions",
0 commit comments