Remove unnecessary optimize call that destabelizes test

This commit is contained in:
Simon Willnauer 2014-01-18 20:06:55 +01:00
parent 619c46a2a3
commit 67efe8777a
1 changed files with 0 additions and 3 deletions

View File

@ -108,9 +108,6 @@ public class HotThreadsTest extends ElasticsearchIntegrationTest {
client().prepareIndex("test", "type1", "2").setSource("field1", "value2"),
client().prepareIndex("test", "type1", "3").setSource("field1", "value3"));
ensureSearchable();
if (randomBoolean()) {
optimize();
}
while(latch.getCount() > 0) {
assertHitCount(
client().prepareSearch()