mirror of https://github.com/apache/lucene.git
fix static member leak
This commit is contained in:
parent
2018122bcf
commit
d8afc3876d
|
@ -14,8 +14,8 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package org.apache.lucene;
|
||||
|
||||
package org.apache.lucene;
|
||||
|
||||
import java.io.ByteArrayOutputStream;
|
||||
import java.io.IOException;
|
||||
|
@ -41,6 +41,7 @@ import org.apache.lucene.util.IOUtils;
|
|||
import org.apache.lucene.util.InfoStream;
|
||||
import org.apache.lucene.util.LuceneTestCase;
|
||||
import org.apache.lucene.util.PrintStreamInfoStream;
|
||||
import org.junit.AfterClass;
|
||||
|
||||
/**
|
||||
* Holds tests cases to verify external APIs are accessible
|
||||
|
@ -101,6 +102,11 @@ public class TestMergeSchedulerExternal extends LuceneTestCase {
|
|||
}
|
||||
}
|
||||
|
||||
@AfterClass
|
||||
public static void afterClass() {
|
||||
infoStream = null;
|
||||
}
|
||||
|
||||
public void testSubclassConcurrentMergeScheduler() throws IOException {
|
||||
MockDirectoryWrapper dir = newMockDirectory();
|
||||
dir.failOn(new FailOnlyOnMerge());
|
||||
|
|
Loading…
Reference in New Issue