Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSarika Sinha2016-02-16 01:17:46 -0500
committerSarika Sinha2016-02-16 01:17:46 -0500
commitad622c0c28518612a1666598475a1fda3165709f (patch)
tree8a80eff66a7f93c7ecde712e828977016bf7488f /org.eclipse.debug.tests
parent121746dbfb6aadbb2467ae446158faf9d1d63318 (diff)
downloadeclipse.platform.debug-ad622c0c28518612a1666598475a1fda3165709f.tar.gz
eclipse.platform.debug-ad622c0c28518612a1666598475a1fda3165709f.tar.xz
eclipse.platform.debug-ad622c0c28518612a1666598475a1fda3165709f.zip
Bug 390052 -testREfreshToUnfilterElementsWithMixedFilters test times outI20160301-1230I20160301-0800I20160223-0800I20160216-1400I20160216-0800
Diffstat (limited to 'org.eclipse.debug.tests')
-rw-r--r--org.eclipse.debug.tests/src/org/eclipse/debug/tests/viewer/model/TestModelUpdatesListener.java10
1 files changed, 9 insertions, 1 deletions
diff --git a/org.eclipse.debug.tests/src/org/eclipse/debug/tests/viewer/model/TestModelUpdatesListener.java b/org.eclipse.debug.tests/src/org/eclipse/debug/tests/viewer/model/TestModelUpdatesListener.java
index 6005f418c..4c570ad22 100644
--- a/org.eclipse.debug.tests/src/org/eclipse/debug/tests/viewer/model/TestModelUpdatesListener.java
+++ b/org.eclipse.debug.tests/src/org/eclipse/debug/tests/viewer/model/TestModelUpdatesListener.java
@@ -21,6 +21,7 @@ import java.util.Set;
import java.util.TreeSet;
import org.eclipse.core.runtime.IStatus;
+import org.eclipse.core.runtime.Status;
import org.eclipse.core.runtime.jobs.IJobChangeEvent;
import org.eclipse.core.runtime.jobs.IJobChangeListener;
import org.eclipse.core.runtime.jobs.Job;
@@ -38,6 +39,7 @@ import org.eclipse.debug.internal.ui.viewers.model.provisional.IStateUpdateListe
import org.eclipse.debug.internal.ui.viewers.model.provisional.ITreeModelViewer;
import org.eclipse.debug.internal.ui.viewers.model.provisional.IViewerUpdate;
import org.eclipse.debug.internal.ui.viewers.model.provisional.IViewerUpdateListener;
+import org.eclipse.debug.tests.TestsPlugin;
import org.eclipse.debug.tests.viewer.model.TestModel.TestElement;
import org.eclipse.jface.viewers.TreePath;
import org.eclipse.jface.viewers.ViewerFilter;
@@ -91,7 +93,7 @@ public class TestModelUpdatesListener implements IViewerUpdateListener, ILabelUp
private boolean fStateRestoreComplete;
private int fViewerUpdatesCounter;
private int fLabelUpdatesCounter;
- private int fTimeoutInterval = 80000;
+ private int fTimeoutInterval = 60000;
private long fTimeoutTime;
private boolean fExpectRestoreAfterSaveComplete;
@@ -231,6 +233,7 @@ public class TestModelUpdatesListener implements IViewerUpdateListener, ILabelUp
fStateRestoreComplete = false;
fExpectRestoreAfterSaveComplete = false;
fTimeoutTime = System.currentTimeMillis() + fTimeoutInterval;
+ TestsPlugin.getDefault().getLog().log(new Status(IStatus.INFO, TestsPlugin.PLUGIN_ID, "fTimeOut Reset: " + fTimeoutTime)); //$NON-NLS-1$
resetModelChanged();
}
@@ -883,6 +886,11 @@ public class TestModelUpdatesListener implements IViewerUpdateListener, ILabelUp
buf.append("\n\t"); //$NON-NLS-1$
buf.append("fTimeoutInterval = " + fTimeoutInterval); //$NON-NLS-1$
}
+ if (fTimeoutTime < System.currentTimeMillis()) {
+ buf.append("\n\t"); //$NON-NLS-1$
+ buf.append("fTimeoutTime = " + fTimeoutTime); //$NON-NLS-1$
+ buf.append("Current Time = " + System.currentTimeMillis()); //$NON-NLS-1$
+ }
return buf.toString();
}

Back to the top