mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
reduced timeout in tests to one minute down from ridiculous ten minutes
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user