reduced timeout in tests to one minute down from ridiculous ten minutes

This commit is contained in:
Alexey Kudravtsev
2014-06-13 11:28:28 +04:00
parent dd325f79ba
commit a1ac3924ff
2 changed files with 3 additions and 3 deletions
@@ -406,7 +406,7 @@ public class PlaybackDebugger implements UiDebuggerExtension, PlaybackRunner.Sta
new Thread() {
@Override
public void run() {
new WaitFor() {
new WaitFor(60000) {
@Override
protected boolean condition() {
return KeyboardFocusManager.getCurrentKeyboardFocusManager().getFocusedWindow() instanceof IdeFrame || myRunner == null;
@@ -1,5 +1,5 @@
/*
* Copyright 2000-2013 JetBrains s.r.o.
* Copyright 2000-2014 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -23,7 +23,7 @@ import org.jetbrains.annotations.NonNls;
*/
public abstract class WaitFor {
private static final int DEFAULT_STEP = 10;
private static final int MAX_TIMEOUT = 600 * 1000;
private static final int MAX_TIMEOUT = 60 * 1000;
private long myWaitTime;
private boolean myInterrupted;