lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From markrmil...@apache.org
Subject svn commit: r1423532 - /lucene/dev/trunk/solr/core/src/test/org/apache/solr/cloud/SyncSliceTest.java
Date Tue, 18 Dec 2012 17:06:10 GMT
Author: markrmiller
Date: Tue Dec 18 17:06:10 2012
New Revision: 1423532

URL: http://svn.apache.org/viewvc?rev=1423532&view=rev
Log:
better fail msg

Modified:
    lucene/dev/trunk/solr/core/src/test/org/apache/solr/cloud/SyncSliceTest.java

Modified: lucene/dev/trunk/solr/core/src/test/org/apache/solr/cloud/SyncSliceTest.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/core/src/test/org/apache/solr/cloud/SyncSliceTest.java?rev=1423532&r1=1423531&r2=1423532&view=diff
==============================================================================
--- lucene/dev/trunk/solr/core/src/test/org/apache/solr/cloud/SyncSliceTest.java (original)
+++ lucene/dev/trunk/solr/core/src/test/org/apache/solr/cloud/SyncSliceTest.java Tue Dec 18
17:06:10 2012
@@ -204,12 +204,15 @@ public class SyncSliceTest extends Abstr
     
     commit();
     
+    Thread.sleep(100);
+    
     waitForRecoveriesToFinish(false);
     
     // shard should be inconsistent
     shardFailMessage = checkShardConsistency("shard1", true);
-    assertNotNull(shardFailMessage);
-    
+    assertNotNull(
+        "shard1 shoul have just been set up to be inconsistent - but it's still consistent",
+        shardFailMessage); 
     
     jetties = new HashSet<CloudJettyRunner>();
     jetties.addAll(shardToJetty.get("shard1"));



Mime
View raw message