compiler tests: reduce timeout from 50 minutes to 5 minutes and disable it if debugging is active

GitOrigin-RevId: 0f66a8b589bd3ff6d4af6938322f178445d70c9b
This commit is contained in:
nik
2019-05-15 15:10:35 +03:00
committed by intellij-monorepo-bot
parent 4a83d646a0
commit 3ef7dcf1d9
@@ -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()) {