File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
test/framework/src/main/java/org/elasticsearch/test/hamcrest Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -346,15 +346,15 @@ public static void assertNoFailures(BroadcastResponse response) {
346346
347347 public static void assertAllSuccessful (BroadcastResponse response ) {
348348 assertNoFailures (response );
349- assertThat ("Expected all shards successful but got successful [" + response . getSuccessfulShards () + "] total [" + response . getTotalShards () + "] " ,
350- response .getTotalShards (), equalTo (response .getSuccessfulShards ()));
349+ assertThat ("Expected all shards successful" ,
350+ response .getSuccessfulShards (), equalTo (response .getTotalShards ()));
351351 assertVersionSerializable (response );
352352 }
353353
354354 public static void assertAllSuccessful (SearchResponse response ) {
355355 assertNoFailures (response );
356- assertThat ("Expected all shards successful but got successful [" + response . getSuccessfulShards () + "] total [" + response . getTotalShards () + "] " ,
357- response .getTotalShards (), equalTo (response .getSuccessfulShards ()));
356+ assertThat ("Expected all shards successful" ,
357+ response .getSuccessfulShards (), equalTo (response .getTotalShards ()));
358358 assertVersionSerializable (response );
359359 }
360360
You can’t perform that action at this time.
0 commit comments