From 6ad5ac62a907a7e119c15a230a15e2eeaa71e560 Mon Sep 17 00:00:00 2001 From: "Vitaliy.Bibaev" Date: Sun, 8 Oct 2017 15:18:20 +0300 Subject: [PATCH] Add temporary fix for flaky tests with "Thread leaked[Javac server ...]" --- .../streams/exec/TraceExecutionTestCase.java | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/plugins/stream-debugger/test/com/intellij/debugger/streams/exec/TraceExecutionTestCase.java b/plugins/stream-debugger/test/com/intellij/debugger/streams/exec/TraceExecutionTestCase.java index 171818df8fe5..6201b162190c 100644 --- a/plugins/stream-debugger/test/com/intellij/debugger/streams/exec/TraceExecutionTestCase.java +++ b/plugins/stream-debugger/test/com/intellij/debugger/streams/exec/TraceExecutionTestCase.java @@ -70,6 +70,23 @@ public abstract class TraceExecutionTestCase extends DebuggerTestCase { return new File(PluginPathManager.getPluginHomePath("stream-debugger") + "/testData/debug/").getAbsolutePath(); } + /** + * + * @throws Exception + */ + @Override + protected void tearDown() throws Exception { + try { + //noinspection SuperTearDownInFinally + super.tearDown(); + } + catch (Throwable t) { + if (!t.getMessage().startsWith("Thread leaked: Thread[Javac server event loop")) { + throw t; + } + } + } + protected void doTest(boolean isResultNull) { doTest(isResultNull, DEFAULT_CHAIN_SELECTOR); }