From fc9e05cffad2ccd2a77eef0092e46904c23de164 Mon Sep 17 00:00:00 2001 From: Kirill Likhodedov Date: Sat, 11 Feb 2017 10:42:25 +0000 Subject: [PATCH] git tests: clear fields after other tasks in tear down Otherwise the project can't be teared down correctly, and dumpToStdOut also doesn't work. --- .../testSrc/com/intellij/vcs/test/VcsPlatformTest.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/platform/vcs-tests/testSrc/com/intellij/vcs/test/VcsPlatformTest.kt b/platform/vcs-tests/testSrc/com/intellij/vcs/test/VcsPlatformTest.kt index 8633198dd3ba..20572182b148 100644 --- a/platform/vcs-tests/testSrc/com/intellij/vcs/test/VcsPlatformTest.kt +++ b/platform/vcs-tests/testSrc/com/intellij/vcs/test/VcsPlatformTest.kt @@ -73,9 +73,9 @@ abstract class VcsPlatformTest : PlatformTestCase() { override fun tearDown() { RunAll().append(ThrowableRunnable { waitForPendingTasks() }).append(ThrowableRunnable - { clearFields(this) }).append(ThrowableRunnable { runInEdtAndWait { super@VcsPlatformTest.tearDown() }}).append(ThrowableRunnable - { if (myAssertionsInTestDetected) TestLoggerFactory.dumpLogToStdout(myTestStartedIndicator) }) + { if (myAssertionsInTestDetected) TestLoggerFactory.dumpLogToStdout(myTestStartedIndicator) }).append(ThrowableRunnable + { clearFields(this) }) .run() }