mirror of https://github.com/apache/lucene.git
SOLR-2279: move to test-framework, and add consistency for IDE users
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1130052 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
7f5305ecfc
commit
402c76d700
|
@ -620,6 +620,12 @@ public abstract class LuceneTestCase extends Assert {
|
|||
for (Thread t : Thread.getAllStackTraces().keySet()) {
|
||||
rogueThreads.put(t, true);
|
||||
}
|
||||
|
||||
// enable this by default, for IDE consistency with ant tests (as its the default from ant)
|
||||
// TODO: really should be in solr base classes, but some extend LTC directly.
|
||||
if (System.getProperty("solr.directoryFactory") == null) {
|
||||
System.setProperty("solr.directoryFactory", "org.apache.solr.core.MockDirectoryFactory");
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue