Skip to content

Commit

Permalink
[TEST] Enhance failure message when bulk updates have failures
Browse files Browse the repository at this point in the history
  • Loading branch information
dakrone committed Aug 3, 2018
1 parent 062ec66 commit e66bc0d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@ public void testBulkUpdateLargerVolume() throws Exception {
.setScript(new Script(ScriptType.INLINE, CustomScriptPlugin.NAME, "ctx.op = \"delete\"", Collections.emptyMap())));
}
response = builder.execute().actionGet();
assertThat(response.hasFailures(), equalTo(false));
assertThat("expected no failures but got: " + response.buildFailureMessage(), response.hasFailures(), equalTo(false));
assertThat(response.getItems().length, equalTo(numDocs));
for (int i = 0; i < numDocs; i++) {
assertThat(response.getItems()[i].getItemId(), equalTo(i));
Expand Down

0 comments on commit e66bc0d

Please sign in to comment.