Skip to content

Commit 5c84708

Browse files
author
Hendrik Muhs
committed
test: expose error message on failure
1 parent 231f6c1 commit 5c84708

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

server/src/test/java/org/elasticsearch/action/bulk/BulkIntegrationIT.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,10 +93,10 @@ public void testBulkWithWriteIndexAndRouting() {
9393
assertThat(client().prepareGet("index3", "type", "id").setRouting("1").get().getSource().get("foo"), equalTo("baz"));
9494

9595
bulkResponse = client().prepareBulk().add(client().prepareUpdate("alias1", "type", "id").setDoc("foo", "updated")).get();
96-
assertFalse(bulkResponse.hasFailures());
96+
assertFalse(bulkResponse.buildFailureMessage(), bulkResponse.hasFailures());
9797
assertThat(client().prepareGet("index3", "type", "id").setRouting("1").get().getSource().get("foo"), equalTo("updated"));
9898
bulkResponse = client().prepareBulk().add(client().prepareDelete("alias1", "type", "id")).get();
99-
assertFalse(bulkResponse.hasFailures());
99+
assertFalse(bulkResponse.buildFailureMessage(), bulkResponse.hasFailures());
100100
assertFalse(client().prepareGet("index3", "type", "id").setRouting("1").get().isExists());
101101
}
102102

0 commit comments

Comments
 (0)