Skip to content

Commit a7aa7db

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 a9532fe commit a7aa7db

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

246246
}
247247

0 commit comments

Comments
 (0)