SOLR-9854 Relax test assertions.

This commit is contained in:
Andrzej Bialecki 2017-01-09 11:16:40 +01:00
parent b017731203
commit b9827bcba9
1 changed files with 2 additions and 2 deletions

View File

@ -67,13 +67,13 @@ public class SolrIndexMetricsTest extends SolrTestCaseJ4 {
// check basic index meters
Timer timer = (Timer)metrics.get("INDEX.merge.minor");
assertEquals("minorMerge: " + timer.getCount(), 4, timer.getCount());
assertTrue("minorMerge: " + timer.getCount(), timer.getCount() >= 3);
timer = (Timer)metrics.get("INDEX.merge.major");
assertEquals("majorMerge: " + timer.getCount(), 0, timer.getCount());
Meter meter = (Meter)metrics.get("INDEX.merge.major.docs");
assertEquals("majorMergeDocs: " + meter.getCount(), 0, meter.getCount());
meter = (Meter)metrics.get("INDEX.flush");
assertEquals("flush: " + meter.getCount(), 19, meter.getCount());
assertTrue("flush: " + meter.getCount(), meter.getCount() > 10);
// check basic directory meters
meter = (Meter)metrics.get("DIRECTORY.total.reads");