[TEST] Fix the throttle test.

This commit is contained in:
Brian Murphy 2014-11-04 12:36:52 +00:00
parent 8997dba52f
commit 792b25e857
1 changed files with 3 additions and 2 deletions

View File

@ -321,7 +321,6 @@ public class IndexStatsTests extends ElasticsearchIntegrationTest {
}
@Test
@LuceneTestCase.AwaitsFix(bugUrl = "This test intermittently fails with no throttling happening.")
public void throttleStats() throws Exception {
assertAcked(prepareCreate("test")
.setSettings(ImmutableSettings.builder()
@ -363,8 +362,10 @@ public class IndexStatsTests extends ElasticsearchIntegrationTest {
}
}
stats = client().admin().indices().prepareStats().execute().actionGet();
if (done) {
assertThat(stats.getPrimaries().getIndexing().getTotal().getThrottleTimeInMillis(), greaterThan(0l));
}
}
@Test
public void simpleStats() throws Exception {