From 9a74a588dafbc9805e349f6f862d9d62334257c6 Mon Sep 17 00:00:00 2001 From: Uwe Schindler Date: Wed, 12 Dec 2012 18:45:56 +0000 Subject: [PATCH] Hopefully fix the forever hanging DIH test in Maven builds, because it depends on CWD, which is different on Maven builds... git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1420908 13f79535-47bb-0310-9956-ffa450edef68 --- .../handler/dataimport/TestSolrEntityProcessorEndToEnd.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/solr/contrib/dataimporthandler/src/test/org/apache/solr/handler/dataimport/TestSolrEntityProcessorEndToEnd.java b/solr/contrib/dataimporthandler/src/test/org/apache/solr/handler/dataimport/TestSolrEntityProcessorEndToEnd.java index 6a7108ec28e..cc1c01756ff 100644 --- a/solr/contrib/dataimporthandler/src/test/org/apache/solr/handler/dataimport/TestSolrEntityProcessorEndToEnd.java +++ b/solr/contrib/dataimporthandler/src/test/org/apache/solr/handler/dataimport/TestSolrEntityProcessorEndToEnd.java @@ -47,11 +47,11 @@ public class TestSolrEntityProcessorEndToEnd extends AbstractDataImportHandlerTe private static Logger LOG = LoggerFactory.getLogger(TestSolrEntityProcessorEndToEnd.class); - //rivate static final String SOLR_SOURCE_URL = "http://127.0.0.1:8983/solr"; + //private static final String SOLR_SOURCE_URL = "http://127.0.0.1:8983/solr"; private static final String SOLR_CONFIG = "dataimport-solrconfig.xml"; private static final String SOLR_SCHEMA = "dataimport-schema.xml"; - private static final String SOLR_HOME = "dih/solr"; - private static final String CONF_DIR = "dih" + File.separator + "solr" + File.separator + "collection1" + File.separator + "conf" + File.separator; + private static final String SOLR_HOME = getFile("dih/solr").getAbsolutePath(); + private static final String CONF_DIR = SOLR_HOME + File.separator + "collection1" + File.separator + "conf" + File.separator; private static final List> DB_DOCS = new ArrayList>(); private static final List> SOLR_DOCS = new ArrayList>();