From 23068f36937751f2fc384810fe62e84f89066ccd Mon Sep 17 00:00:00 2001 From: Alexander Zolotov Date: Wed, 18 Dec 2019 13:44:38 +0300 Subject: [PATCH] Prepare heapDump before checking unloaded extensions GitOrigin-RevId: 3a7cdee8fca854de9a1728806b5bc65c70c2d424 --- platform/testFramework/src/_LastInSuiteTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/testFramework/src/_LastInSuiteTest.java b/platform/testFramework/src/_LastInSuiteTest.java index 23cafcc1c2c8..a1069b3d4f93 100644 --- a/platform/testFramework/src/_LastInSuiteTest.java +++ b/platform/testFramework/src/_LastInSuiteTest.java @@ -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); } }