Skip to content

Commit 9deddc0

Browse files
author
elasticsearchmachine
committed
[CI] Auto commit changes from spotless
1 parent 5d4803f commit 9deddc0

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

x-pack/plugin/inference/src/test/java/org/elasticsearch/xpack/inference/mapper/SemanticTextFieldMapperTests.java

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1535,7 +1535,7 @@ public void testSpecifiedDenseVectorIndexOptions() throws IOException {
15351535
}
15361536

15371537
public void testSpecificSparseVectorIndexOptions() throws IOException {
1538-
for (int i=0; i < 10; i++) {
1538+
for (int i = 0; i < 10; i++) {
15391539
SparseVectorFieldMapper.SparseVectorIndexOptions testIndexOptions = randomSparseVectorIndexOptionsAll();
15401540
var mapperService = createMapperService(fieldMapping(b -> {
15411541
b.field("type", SemanticTextFieldMapper.CONTENT_TYPE);
@@ -1556,10 +1556,7 @@ public void testSpecificSparseVectorIndexOptions() throws IOException {
15561556
"field",
15571557
false,
15581558
null,
1559-
new SemanticTextIndexOptions(
1560-
SemanticTextIndexOptions.SupportedIndexOptions.SPARSE_VECTOR,
1561-
testIndexOptions
1562-
)
1559+
new SemanticTextIndexOptions(SemanticTextIndexOptions.SupportedIndexOptions.SPARSE_VECTOR, testIndexOptions)
15631560
);
15641561
}
15651562

@@ -1581,10 +1578,7 @@ public void testSpecificSparseVectorIndexOptions() throws IOException {
15811578
}
15821579
b.endObject();
15831580
}), useLegacyFormat, IndexVersions.INFERENCE_METADATA_FIELDS_BACKPORT));
1584-
assertThat(
1585-
e.getMessage(),
1586-
containsString("[index_options] field [pruning_config] should only be set if [prune] is set to true")
1587-
);
1581+
assertThat(e.getMessage(), containsString("[index_options] field [pruning_config] should only be set if [prune] is set to true"));
15881582

15891583
e = expectThrows(MapperParsingException.class, () -> createMapperService(fieldMapping(b -> {
15901584
b.field("type", SemanticTextFieldMapper.CONTENT_TYPE);

0 commit comments

Comments
 (0)