[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.
This commit is contained in:
Simon Willnauer 2014-04-16 15:17:38 +02:00
parent 3530c8be7e
commit 26adb37f09
1 changed files with 2 additions and 1 deletions

View File

@ -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
};
// -----------------------------------------------------------------