Skip to content

Commit 2bc6b7e

Browse files
committed
Fix put mapping request validators random test
This commit fixes a test bug in the request validators random test. In particular, an assertion was not properly nested in a guard that would ensure that was at least one failure. Relates #43000
1 parent b953dce commit 2bc6b7e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/src/test/java/org/elasticsearch/action/admin/indices/mapping/put/TransportPutMappingRequestValidatorsTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,8 @@ public void testRandom() {
8181
assertNull(e);
8282
} else {
8383
assertNotNull(e);
84+
assertThat(e.getSuppressed(), Matchers.arrayWithSize(numberOfFailures - 1));
8485
}
85-
assertThat(e.getSuppressed(), Matchers.arrayWithSize(numberOfFailures - 1));
8686
}
8787

8888
}

0 commit comments

Comments
 (0)