Remove unnecessary optimize call that destabelizes test
This commit is contained in:
parent
619c46a2a3
commit
67efe8777a
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue