File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed
modules/reindex/src/test/java/org/opensearch/index/reindex Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change 4848import java .util .Map ;
4949import java .util .stream .Collectors ;
5050
51- import static org .hamcrest .Matchers .containsString ;
5251import static org .opensearch .index .query .QueryBuilders .matchAllQuery ;
5352import static org .opensearch .index .query .QueryBuilders .termQuery ;
5453import static org .opensearch .test .hamcrest .OpenSearchAssertions .assertAcked ;
5554import static org .opensearch .test .hamcrest .OpenSearchAssertions .assertHitCount ;
55+ import static org .hamcrest .Matchers .containsString ;
5656import static org .hamcrest .Matchers .greaterThanOrEqualTo ;
5757import static org .hamcrest .Matchers .hasSize ;
5858import static org .hamcrest .Matchers .lessThanOrEqualTo ;
@@ -497,12 +497,7 @@ public void testTooMuchSlices() throws InterruptedException {
497497
498498 int slices = 2000 ;
499499 IllegalArgumentException e = expectThrows (IllegalArgumentException .class , () -> {
500- reindex ()
501- .source ("source" )
502- .destination ("dest" )
503- .refresh (true )
504- .setSlices (slices )
505- .get ();
500+ reindex ().source ("source" ).destination ("dest" ).refresh (true ).setSlices (slices ).get ();
506501 });
507502 assertThat (e .getMessage (), containsString ("is too large" ));
508503 }
You can’t perform that action at this time.
0 commit comments