diff --git a/java/compiler/tests/com/intellij/compiler/BaseCompilerTestCase.java b/java/compiler/tests/com/intellij/compiler/BaseCompilerTestCase.java index b07b4098fe13..78b96b1d322e 100644 --- a/java/compiler/tests/com/intellij/compiler/BaseCompilerTestCase.java +++ b/java/compiler/tests/com/intellij/compiler/BaseCompilerTestCase.java @@ -262,7 +262,7 @@ public abstract class BaseCompilerTestCase extends ModuleTestCase { try { final long start = System.currentTimeMillis(); while (!semaphore.waitFor(10)) { - if (System.currentTimeMillis() - start > 50 * 60 * 1000) { + if (!BuildManager.getInstance().isBuildProcessDebuggingEnabled() && System.currentTimeMillis() - start > 5 * 60 * 1000) { throw new RuntimeException("timeout"); } if (SwingUtilities.isEventDispatchThread()) {