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.
This commit is contained in:
parent
d82c40d35c
commit
cbba37c17d
|
@ -240,7 +240,7 @@ public class IndicesServiceTests extends ESSingleNodeTestCase {
|
|||
assertEquals(indicesService.numPendingDeletes(test.index()), 0);
|
||||
assertTrue(indicesService.hasUncompletedPendingDeletes()); // "bogus" index has not been removed
|
||||
}
|
||||
assertAcked(client().admin().indices().prepareOpen("test"));
|
||||
assertAcked(client().admin().indices().prepareOpen("test").setTimeout(TimeValue.timeValueSeconds(1)));
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue