Apache Solr open-source search software
tests: improve test fail msg for easier debugging
Mark Robert Millerc8178bd351b9
diff --git a/solr/core/src/test/org/apache/solr/cloud/ZkCLITest.java b/solr/core/src/test/org/apache/solr/cloud/ZkCLITest.javaindex 704a15585d7..4de809dcbfc 100644--- a/solr/core/src/test/org/apache/solr/cloud/ZkCLITest.java+++ b/solr/core/src/test/org/apache/solr/cloud/ZkCLITest.java@@ -195,9 +195,8 @@ public class ZkCLITest extends SolrTestCaseJ4 {int indexOfRelativePath = sourceFile.getAbsolutePath().lastIndexOf("collection1/conf");String relativePathofFile = sourceFile.getAbsolutePath().substring(indexOfRelativePath + 17, sourceFile.getAbsolutePath().length());File downloadedFile = new File(confDir,relativePathofFile);- assertTrue("Make sure we did download each file in the original configuration",downloadedFile.exists());+ assertTrue(downloadedFile.getAbsolutePath() + " does not exist source:" + sourceFile.getAbsolutePath(), downloadedFile.exists());assertTrue("Content didn't change",FileUtils.contentEquals(sourceFile,downloadedFile));-}}