Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions muted-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -393,9 +393,6 @@ tests:
- class: org.elasticsearch.reservedstate.service.ReservedClusterStateServiceTests
method: testProcessMultipleChunks
issue: https://github.com/elastic/elasticsearch/issues/125305
- class: org.elasticsearch.index.mapper.NativeArrayIntegrationTestCase
method: testSynthesizeArrayRandomIgnoresMalformed
issue: https://github.com/elastic/elasticsearch/issues/125319

# Examples:
#
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,10 @@ public void testSynthesizeArrayRandomIgnoresMalformed() throws Exception {
var expectedDocument = jsonBuilder().startObject();
var inputDocument = jsonBuilder().startObject();

boolean expectedContainsArray = values.length > 0 || malformed.length > 1;
if (expectedContainsArray) {
boolean expectedIsArray = values.length != 0 || malformed.length != 1;
if (expectedIsArray) {
expectedDocument.startArray("field");
} else if (malformed.length > 0) {
} else {
expectedDocument.field("field");
}
inputDocument.startArray("field");
Expand All @@ -113,7 +113,7 @@ public void testSynthesizeArrayRandomIgnoresMalformed() throws Exception {
}
}

if (expectedContainsArray) {
if (expectedIsArray) {
expectedDocument.endArray();
}
expectedDocument.endObject();
Expand Down