From 26adb37f093ed189c971a5df084d2697a049e71b Mon Sep 17 00:00:00 2001 From: Simon Willnauer Date: Wed, 16 Apr 2014 15:17:38 +0200 Subject: [PATCH] [TEST] Ignore bogus system properties. LuceneTestCase might reset some solr properties that cause our tests to fail if the run before in the same JVM We just ignore solr properties. --- .../java/org/apache/lucene/util/AbstractRandomizedTest.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/test/java/org/apache/lucene/util/AbstractRandomizedTest.java b/src/test/java/org/apache/lucene/util/AbstractRandomizedTest.java index 4bc098af3ce..522bdc3d084 100644 --- a/src/test/java/org/apache/lucene/util/AbstractRandomizedTest.java +++ b/src/test/java/org/apache/lucene/util/AbstractRandomizedTest.java @@ -144,7 +144,8 @@ public abstract class AbstractRandomizedTest extends RandomizedTest { * @see #classRules */ private static final String[] IGNORED_INVARIANT_PROPERTIES = { - "user.timezone", "java.rmi.server.randomIDs", "sun.nio.ch.bugLevel" + "user.timezone", "java.rmi.server.randomIDs", "sun.nio.ch.bugLevel", + "solr.directoryFactory", "solr.solr.home", "solr.data.dir" // these might be set by the LuceneTestCase -- ignore }; // -----------------------------------------------------------------