Skip to content

Commit 3403ca5

Browse files
committed
Set ACK timeout on indices service test
Setting a timeout here speeds the test up significantly since we do not need to wait up the default of 30 seconds for shards to start, we only need an ACK that the index was opened.
1 parent ac13cca commit 3403ca5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/test/java/org/elasticsearch/indices/IndicesServiceTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ public void testPendingTasks() throws Exception {
257257
assertEquals(indicesService.numPendingDeletes(test.index()), 0);
258258
assertTrue(indicesService.hasUncompletedPendingDeletes()); // "bogus" index has not been removed
259259
}
260-
assertAcked(client().admin().indices().prepareOpen("test"));
260+
assertAcked(client().admin().indices().prepareOpen("test").setTimeout(TimeValue.timeValueSeconds(1)));
261261

262262
}
263263

0 commit comments

Comments
 (0)