Me too, it fails randomly with test classes. We use Solr4.0 for testing, no maven, only ant. --roman On 4 Feb 2013 20:48, "Mike Schultz" <mike.schu...@gmail.com> wrote:
> Yes. Just today actually. I had some unit test based on > AbstractSolrTestCase which worked in 4.0 but in 4.1 they would fail > intermittently with that error message. The key to this behavior is found > by looking at the code in the lucene class: > TestRuleSetupAndRestoreClassEnv. > I don't understand it completely but there are a number of random code > paths > through there. The following helped me get around the problem, at least in > the short term. > > > @org.apache.lucene.util.LuceneTestCase.SuppressCodecs({"Lucene3x","Lucene40"}) > public class CoreLevelTest extends AbstractSolrTestCase { > > I also need to call this inside my setUp() method, in 4.0 this wasn't > required. > initCore("solrconfig.xml", "schema.xml", "/tmp/my-solr-home"); > > > > -- > View this message in context: > http://lucene.472066.n3.nabble.com/Anyone-else-see-this-error-when-running-unit-tests-tp4015034p4038472.html > Sent from the Solr - User mailing list archive at Nabble.com. >