mirror of https://github.com/apache/lucene.git
SOLR-9854 Relax test assertions.
This commit is contained in:
parent
b017731203
commit
b9827bcba9
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue