From 3ef7dcf1d98d16934f33c4a60fc280b83924955a Mon Sep 17 00:00:00 2001 From: nik Date: Wed, 15 May 2019 13:29:45 +0300 Subject: [PATCH] compiler tests: reduce timeout from 50 minutes to 5 minutes and disable it if debugging is active GitOrigin-RevId: 0f66a8b589bd3ff6d4af6938322f178445d70c9b --- .../tests/com/intellij/compiler/BaseCompilerTestCase.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()) {