diff --git a/solr/core/src/test/org/apache/solr/cloud/ZkControllerTest.java b/solr/core/src/test/org/apache/solr/cloud/ZkControllerTest.java index 65b62766d6c..8809f6c3b54 100644 --- a/solr/core/src/test/org/apache/solr/cloud/ZkControllerTest.java +++ b/solr/core/src/test/org/apache/solr/cloud/ZkControllerTest.java @@ -130,7 +130,7 @@ public class ZkControllerTest extends SolrTestCaseJ4 { } testFinished = true; } finally { - if (testFinished) { + if (!testFinished) { zkController.getZkClient().printLayoutToStdOut(); }