You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by sh...@apache.org on 2015/04/30 11:26:56 UTC
svn commit: r1676936 -
/lucene/dev/trunk/solr/core/src/test/org/apache/solr/handler/TestReplicationHandler.java
Author: shalin
Date: Thu Apr 30 09:26:56 2015
New Revision: 1676936
URL: http://svn.apache.org/r1676936
Log:
Reduce redundancy in assert and log more information to help in debugging
Modified:
lucene/dev/trunk/solr/core/src/test/org/apache/solr/handler/TestReplicationHandler.java
Modified: lucene/dev/trunk/solr/core/src/test/org/apache/solr/handler/TestReplicationHandler.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/core/src/test/org/apache/solr/handler/TestReplicationHandler.java?rev=1676936&r1=1676935&r2=1676936&view=diff
==============================================================================
--- lucene/dev/trunk/solr/core/src/test/org/apache/solr/handler/TestReplicationHandler.java (original)
+++ lucene/dev/trunk/solr/core/src/test/org/apache/solr/handler/TestReplicationHandler.java Thu Apr 30 09:26:56 2015
@@ -1313,11 +1313,8 @@ public class TestReplicationHandler exte
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 {