Skip to content

Commit cbba37c

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 d82c40d commit cbba37c

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
@@ -240,7 +240,7 @@ public void testPendingTasks() throws Exception {
240240
assertEquals(indicesService.numPendingDeletes(test.index()), 0);
241241
assertTrue(indicesService.hasUncompletedPendingDeletes()); // "bogus" index has not been removed
242242
}
243-
assertAcked(client().admin().indices().prepareOpen("test"));
243+
assertAcked(client().admin().indices().prepareOpen("test").setTimeout(TimeValue.timeValueSeconds(1)));
244244

245245
}
246246

0 commit comments

Comments
 (0)