AlreadyClosedException in JUnit tests?

2007-11-28 Thread Ryan McKinley
I'm trying to write some tests for SOLR-418 and I can't tell if this is a real error or that I'm using the TestHarness incorrectly. I don't see this error running the site normally. The test is setup like this: 1. add docs and commit 2. query check results 3. query check results ... The

Re: AlreadyClosedException in JUnit tests?

2007-11-28 Thread Ryan McKinley
To duplicate the same error on trunk, add a 'sort asc' test to StandardRequestHandlerTest Index: StandardRequestHandlerTest.java === --- StandardRequestHandlerTest.java (revision 599100) +++ StandardRequestHandlerTest.java

Re: AlreadyClosedException in JUnit tests?

2007-11-28 Thread Chris Hostetter
: The test is setup like this: : 1. add docs and commit : 2. query check results : 3. query check results : ... Hmmm.. can you post the test, that works fine in a lot of existing tests. -Hoss

Re: AlreadyClosedException in JUnit tests?

2007-11-28 Thread Chris Hostetter
H... the problem doesn't seem to be related to sorting at all, it looks like it has to do with the fact that most of the tests are reusing the same LocalSolrQueryRequest object over and over (just changing the params) assertQ calls close() on the request object, which decrements some