Skip to content

Commit 904584d

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 cb94319 commit 904584d

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
@@ -84,8 +84,8 @@ public void testRandom() {
8484
assertNull(e);
8585
} else {
8686
assertNotNull(e);
87+
assertThat(e.getSuppressed(), Matchers.arrayWithSize(numberOfFailures - 1));
8788
}
88-
assertThat(e.getSuppressed(), Matchers.arrayWithSize(numberOfFailures - 1));
8989
}
9090

9191
}

0 commit comments

Comments
 (0)