Apache Lucene open-source search software
Reduce redundancy in assert and log more information to help in debugging
Shalin Shekhar Mangarfd769b3b7faf
diff --git a/solr/core/src/test/org/apache/solr/handler/TestReplicationHandler.java b/solr/core/src/test/org/apache/solr/handler/TestReplicationHandler.javaindex 6ebefde4c58..15eb62c54c7 100644--- a/solr/core/src/test/org/apache/solr/handler/TestReplicationHandler.java+++ b/solr/core/src/test/org/apache/solr/handler/TestReplicationHandler.java@@ -1313,11 +1313,8 @@ public class TestReplicationHandler extends SolrTestCaseJ4 {long timeTakenInSeconds = TimeUnit.SECONDS.convert(timeTaken, TimeUnit.NANOSECONDS);//Let's make sure it took more than approximateTimeInSeconds to make sure that it was throttled- boolean isElapsed = false;- if(timeTakenInSeconds - approximateTimeInSeconds > 0) {- isElapsed = true;- }- assertTrue(isElapsed);+ log.info("approximateTimeInSeconds = " + approximateTimeInSeconds + " timeTakenInSeconds = " + timeTakenInSeconds);+ assertTrue(timeTakenInSeconds - approximateTimeInSeconds > 0);}private class AddExtraDocs implements Runnable {