diff --git a/platform/testFramework/src/com/intellij/testFramework/TestApplicationManager.kt b/platform/testFramework/src/com/intellij/testFramework/TestApplicationManager.kt index 551c19a2bcfb..fb7858a64387 100644 --- a/platform/testFramework/src/com/intellij/testFramework/TestApplicationManager.kt +++ b/platform/testFramework/src/com/intellij/testFramework/TestApplicationManager.kt @@ -284,11 +284,11 @@ fun disposeApplicationAndCheckForLeaks() { LeakHunter.checkNonDefaultProjectLeak() } catch (e: AssertionError) { - PlatformTestUtil.captureMemorySnapshot() + HeavyPlatformTestCase.publishHeapDump("leakedProjects") throw e } catch (e: Exception) { - PlatformTestUtil.captureMemorySnapshot() + HeavyPlatformTestCase.publishHeapDump("leakedProjects") throw e } } @@ -302,11 +302,11 @@ fun disposeApplicationAndCheckForLeaks() { Disposer.assertIsEmpty(true) } catch (e: AssertionError) { - PlatformTestUtil.captureMemorySnapshot() + HeavyPlatformTestCase.publishHeapDump("disposerNonEmpty") throw e } catch (e: Exception) { - PlatformTestUtil.captureMemorySnapshot() + HeavyPlatformTestCase.publishHeapDump("disposerNonEmpty") throw e } }