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:
Jason Tedor 2017-12-08 13:51:38 -05:00
parent d82c40d35c
commit cbba37c17d
1 changed files with 1 additions and 1 deletions

View File

@ -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)));
}