Skip to content

Apache Lucene open-source search software

SOLR-13491 - Touch-up test. Beasting failed 1/50 (5) Now passes 500/500 (20).

Gus Heck6ede32a0796e
diff --git a/solr/solrj/src/test/org/apache/solr/common/cloud/SolrZkClientTest.java b/solr/solrj/src/test/org/apache/solr/common/cloud/SolrZkClientTest.java
index 472b7ef5fc5..6f14f8f0781 100644
--- a/solr/solrj/src/test/org/apache/solr/common/cloud/SolrZkClientTest.java
+++ b/solr/solrj/src/test/org/apache/solr/common/cloud/SolrZkClientTest.java
@@ -185,13 +185,16 @@ public class SolrZkClientTest extends SolrCloudTestCase {
CollectionAdminRequest.setCollectionProperty(getSaferTestName(),"baz", "bam")
.process(solrClient);
+ Thread.sleep(1000); // make sure zk client watch has time to be notified.
assertEquals(1, calls.get()); // same wrapped watch set twice, only invoked once
+
solrClient.getZkStateReader().getZkClient().getData("/collections/" + getSaferTestName() + "/collectionprops.json",wrapped1A, null,true);
solrClient.getZkStateReader().getZkClient().getData("/collections/" + getSaferTestName() + "/collectionprops.json",wrappedB, null,true);
CollectionAdminRequest.setCollectionProperty(getSaferTestName(),"baz", "bang")
.process(solrClient);
+ Thread.sleep(1000); // make sure zk client watch has time to be notified.
assertEquals(1, calls.get()); // offsetting watches, no change
}