Prepare heapDump before checking unloaded extensions

GitOrigin-RevId: 3a7cdee8fca854de9a1728806b5bc65c70c2d424
This commit is contained in:
Alexander Zolotov
2019-12-23 17:33:43 +00:00
committed by intellij-monorepo-bot
parent b4133b1607
commit 23068f3693
@@ -82,6 +82,7 @@ public class _LastInSuiteTest extends TestCase {
GCUtil.tryGcSoftlyReachableObjects();
System.gc();
System.gc();
String heapDump = HeavyPlatformTestCase.publishHeapDump("dynamicExtension");
AtomicBoolean failed = new AtomicBoolean(false);
extensions.forEach((ep, references) -> {
@@ -104,7 +105,6 @@ public class _LastInSuiteTest extends TestCase {
});
if (failed.get()) {
String heapDump = HeavyPlatformTestCase.publishHeapDump("dynamicExtension");
fail("Some of dynamic extensions have not been unloaded. See individual tests for details. Heap dump: " + heapDump);
}
}