mirror of https://github.com/apache/poi.git
re-enable test but make it less stressful - now goes OOM very easily
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1898295 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
d60c134d57
commit
b3c4857222
|
@ -50,7 +50,6 @@ import org.apache.poi.util.TempFile;
|
||||||
import org.apache.poi.xslf.usermodel.XMLSlideShow;
|
import org.apache.poi.xslf.usermodel.XMLSlideShow;
|
||||||
import org.apache.poi.xssf.usermodel.XSSFRelation;
|
import org.apache.poi.xssf.usermodel.XSSFRelation;
|
||||||
import org.apache.poi.xwpf.usermodel.XWPFRelation;
|
import org.apache.poi.xwpf.usermodel.XWPFRelation;
|
||||||
import org.junit.jupiter.api.Disabled;
|
|
||||||
import org.junit.jupiter.api.Test;
|
import org.junit.jupiter.api.Test;
|
||||||
import org.junit.jupiter.api.function.Executable;
|
import org.junit.jupiter.api.function.Executable;
|
||||||
|
|
||||||
|
@ -311,7 +310,6 @@ public final class TestPOIXMLDocument {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Disabled("needs investigation")
|
|
||||||
@Test
|
@Test
|
||||||
void testOSGIClassLoading() throws IOException {
|
void testOSGIClassLoading() throws IOException {
|
||||||
byte[] data;
|
byte[] data;
|
||||||
|
@ -332,8 +330,8 @@ public final class TestPOIXMLDocument {
|
||||||
UncaughtHandler uh = new UncaughtHandler();
|
UncaughtHandler uh = new UncaughtHandler();
|
||||||
|
|
||||||
// check schema type loading and check if we could run in an OOM
|
// check schema type loading and check if we could run in an OOM
|
||||||
Thread[] ta = new Thread[30];
|
Thread[] ta = new Thread[4];
|
||||||
for (int j=0; j<10; j++) {
|
for (int j=0; j<3; j++) {
|
||||||
for (int i=0; i<ta.length; i++) {
|
for (int i=0; i<ta.length; i++) {
|
||||||
ta[i] = new Thread(run);
|
ta[i] = new Thread(run);
|
||||||
ta[i].setContextClassLoader(cl.getParent());
|
ta[i].setContextClassLoader(cl.getParent());
|
||||||
|
|
Loading…
Reference in New Issue