[TEST] make fetch time in millis test more resilient
beef up the fetch work, and increase teh number of iterations (since we count in nanos, but reports in rounded millis)
This commit is contained in:
parent
aa86a51070
commit
2f8fc98012
|
@ -87,9 +87,14 @@ public class SearchStatsTests extends ElasticsearchIntegrationTest {
|
|||
// THERE WILL BE AT LEAST 2 NODES HERE SO WE CAN WAIT FOR GREEN
|
||||
ensureGreen();
|
||||
refresh();
|
||||
int iters = scaledRandomIntBetween(20, 50);
|
||||
int iters = scaledRandomIntBetween(100, 150);
|
||||
for (int i = 0; i < iters; i++) {
|
||||
SearchResponse searchResponse = cluster().clientNodeClient().prepareSearch().setQuery(QueryBuilders.termQuery("field", "value")).setStats("group1", "group2").execute().actionGet();
|
||||
SearchResponse searchResponse = cluster().clientNodeClient().prepareSearch()
|
||||
.setQuery(QueryBuilders.termQuery("field", "value")).setStats("group1", "group2")
|
||||
.addHighlightedField("field")
|
||||
.addScriptField("scrip1", "_source.field")
|
||||
.setSize(100)
|
||||
.execute().actionGet();
|
||||
assertHitCount(searchResponse, docsTest1 + docsTest2);
|
||||
assertAllSuccessful(searchResponse);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue