Skip to content

Commit

Permalink
fix wrong assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
jimczi committed Mar 28, 2024
1 parent 1689da4 commit c66af79
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -552,10 +552,10 @@ public void testPartialIndexReceivesDataFrozenTierPreference() {
}
}

public void testDynamicFieldMetadata() {
public void testInferenceFieldMetadata() {
Settings.Builder settings = indexSettings(IndexVersion.current(), randomIntBetween(1, 8), 0);
IndexMetadata idxMeta1 = IndexMetadata.builder("test").settings(settings).build();
assertSame(idxMeta1.getInferenceFields(), Map.of());
assertTrue(idxMeta1.getInferenceFields().isEmpty());

Map<String, InferenceFieldMetadata> dynamicFields = randomInferenceFields();
IndexMetadata idxMeta2 = IndexMetadata.builder(idxMeta1).putInferenceFields(dynamicFields).build();
Expand Down

0 comments on commit c66af79

Please sign in to comment.