_LastInSuiteTest.testProjectLeak should publish compressed heapdumps

GitOrigin-RevId: a27b6e70ae9196a4888a8bc7a1a9e51f2b310497
This commit is contained in:
Vladislav Rassokhin
2019-12-18 15:15:52 +00:00
committed by intellij-monorepo-bot
parent b7eecceba0
commit 4d61d4995b
@@ -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
}
}