Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorspingel2010-07-09 20:11:32 +0000
committerspingel2010-07-09 20:11:32 +0000
commit9b6769c63a9b65d918a2d06bdc7e3aaf57dd7e72 (patch)
treef73bdfb1093af4c3a883fa3b76d7aa5721149f09 /org.eclipse.mylyn.tasks.tests/src
parent574a2d0a13c245cb795cf17e392f7dc76e17db66 (diff)
downloadorg.eclipse.mylyn.tasks-9b6769c63a9b65d918a2d06bdc7e3aaf57dd7e72.tar.gz
org.eclipse.mylyn.tasks-9b6769c63a9b65d918a2d06bdc7e3aaf57dd7e72.tar.xz
org.eclipse.mylyn.tasks-9b6769c63a9b65d918a2d06bdc7e3aaf57dd7e72.zip
NEW - bug 318271: fix failing tests for 3.5
https://bugs.eclipse.org/bugs/show_bug.cgi?id=318271
Diffstat (limited to 'org.eclipse.mylyn.tasks.tests/src')
-rw-r--r--org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/LinkProviderTest.java9
1 files changed, 6 insertions, 3 deletions
diff --git a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/LinkProviderTest.java b/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/LinkProviderTest.java
index 6b2a361bb..c6d903a46 100644
--- a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/LinkProviderTest.java
+++ b/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/LinkProviderTest.java
@@ -63,16 +63,19 @@ public class LinkProviderTest extends TestCase {
}
public void testTimeout() {
- System.setProperty(ITasksCoreConstants.PROPERTY_LINK_PROVIDER_TIMEOUT, "50");
+ System.setProperty(ITasksCoreConstants.PROPERTY_LINK_PROVIDER_TIMEOUT, "500");
- provider.timeout = 40;
+ provider.timeout = 10;
TasksUiPlugin.getDefault().getRepositoryForResource(ResourcesPlugin.getWorkspace().getRoot());
assertEquals(1, provider.executions);
- provider.timeout = 60;
+ // should cause provider to get removed
+ provider.timeout = 2000;
TasksUiPlugin.getDefault().getRepositoryForResource(ResourcesPlugin.getWorkspace().getRoot());
assertEquals(2, provider.executions);
+ // provider should no longer get called
+ provider.timeout = 10;
TasksUiPlugin.getDefault().getRepositoryForResource(ResourcesPlugin.getWorkspace().getRoot());
assertEquals(2, provider.executions);
}

Back to the top