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:28:12 UTC
svn commit: r1676937 - in /lucene/dev/branches/branch_5x: ./ solr/ solr/core/
solr/core/src/test/org/apache/solr/handler/TestReplicationHandler.java
Author: shalin
Date: Thu Apr 30 09:28:11 2015
New Revision: 1676937
URL: http://svn.apache.org/r1676937
Log:
Reduce redundancy in assert and log more information to help in debugging
Modified:
lucene/dev/branches/branch_5x/ (props changed)
lucene/dev/branches/branch_5x/solr/ (props changed)
lucene/dev/branches/branch_5x/solr/core/ (props changed)
lucene/dev/branches/branch_5x/solr/core/src/test/org/apache/solr/handler/TestReplicationHandler.java
Modified: lucene/dev/branches/branch_5x/solr/core/src/test/org/apache/solr/handler/TestReplicationHandler.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_5x/solr/core/src/test/org/apache/solr/handler/TestReplicationHandler.java?rev=1676937&r1=1676936&r2=1676937&view=diff
==============================================================================
--- lucene/dev/branches/branch_5x/solr/core/src/test/org/apache/solr/handler/TestReplicationHandler.java (original)
+++ lucene/dev/branches/branch_5x/solr/core/src/test/org/apache/solr/handler/TestReplicationHandler.java Thu Apr 30 09:28:11 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 {