Marvel: Wait for shard allocation in IndexStatsCollectorTests
Original commit: elastic/x-pack-elasticsearch@f75c36f945
This commit is contained in:
parent
049ff4cc9f
commit
38061c5f98
|
@ -43,6 +43,8 @@ public class IndexStatsCollectorTests extends AbstractCollectorTestCase {
|
|||
client().admin().indices().prepareRefresh().get();
|
||||
assertHitCount(client().prepareCount().get(), nbDocs);
|
||||
|
||||
waitForRelocation();
|
||||
|
||||
Collection<MarvelDoc> results = newIndexStatsCollector().doCollect();
|
||||
assertThat(results, hasSize(1));
|
||||
|
||||
|
@ -88,6 +90,8 @@ public class IndexStatsCollectorTests extends AbstractCollectorTestCase {
|
|||
assertHitCount(client().prepareCount(indexPrefix + i).get(), docsPerIndex[i]);
|
||||
}
|
||||
|
||||
waitForRelocation();
|
||||
|
||||
Collection<MarvelDoc> results = newIndexStatsCollector().doCollect();
|
||||
assertThat(results, hasSize(nbIndices));
|
||||
|
||||
|
|
Loading…
Reference in New Issue