Skip to content

Commit d491a8b

Browse files
committed
Fix line length in test
1 parent bda2ed6 commit d491a8b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,8 @@ public void testValidate_ServiceReturnsNonTextEmbeddingResults() {
104104
assertThat(
105105
captor.getValue().getMessage(),
106106
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]"
108109
)
109110
);
110111

@@ -142,7 +143,8 @@ public void testValidate_DimensionsSetByUserDoNotEqualEmbeddingSize() {
142143
captor.getValue().getMessage(),
143144
Matchers.is(
144145
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",
146148
embeddingSize,
147149
dimensions,
148150
null

0 commit comments

Comments
 (0)