fix static member leak

This commit is contained in:
Mike McCandless 2016-02-18 10:11:03 -05:00
parent 2018122bcf
commit d8afc3876d
1 changed files with 7 additions and 1 deletions

View File

@ -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());