File tree Expand file tree Collapse file tree 1 file changed +5
-14
lines changed
src/test/java/com/meilisearch/integration Expand file tree Collapse file tree 1 file changed +5
-14
lines changed Original file line number Diff line number Diff line change @@ -139,20 +139,11 @@ public void testClientGetTaskErrorWhenAddingDocuments() throws Exception {
139139 @ Test
140140 public void testClientGetTasksLimitAndFrom () throws Exception {
141141 // Create several indexes to make sure we have enough tasks
142- String indexUid1 = "GetClientTasksLimitFrom1" ;
143- String indexUid2 = "GetClientTasksLimitFrom2" ;
144- String indexUid3 = "GetClientTasksLimitFrom3" ;
145- String indexUid4 = "GetClientTasksLimitFrom4" ;
146-
147- // Create indexes to generate tasks
148- TaskInfo response1 = client .createIndex (indexUid1 );
149- client .waitForTask (response1 .getTaskUid ());
150- TaskInfo response2 = client .createIndex (indexUid2 );
151- client .waitForTask (response2 .getTaskUid ());
152- TaskInfo response3 = client .createIndex (indexUid3 );
153- client .waitForTask (response3 .getTaskUid ());
154- TaskInfo response4 = client .createIndex (indexUid4 );
155- client .waitForTask (response4 .getTaskUid ());
142+ int numIndexes = 4 ;
143+ for (int i = 1 ; i <= numIndexes ; i ++) {
144+ String indexUid = "GetClientTasksLimitFrom" + i ;
145+ TaskInfo response = client .createIndex (indexUid );
146+ }
156147
157148 int limit = 2 ;
158149 int from = 2 ;
You can’t perform that action at this time.
0 commit comments