How to disable com.intellij.testFramework.common.ThreadLeakTracker for some plugin tests

I’m using AssertJ Swing to perform UI testing on my application. Recently, after upgrading the IntelliJ Platform plugin SDK from 2.1.0 to 2.6.0, my tests started to fail due to thread leaks detected by com.intellij.testFramework.common.ThreadLeakTracker.

The thread leaks seem to occur only on the first test execution. This is AssertJ Swing robot thread so it is safe and can be ignored.

My question is:

Is there a any way to disable or suppress ThreadLeakTracker for plugin tests involving AssertJ Swing for some test classes (best case - only AssertJ tests) or whole test execution?
Class that cause my problem is here: intellij-community/platform/testFramework/common/src/common/ThreadLeakTracker.java at master · JetBrains/intellij-community · GitHub

1 Like