Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorspingel2010-02-21 04:00:56 +0000
committerspingel2010-02-21 04:00:56 +0000
commitbbff1b6d9a0de78ada0cd8f6f40e4e6c17cdecbe (patch)
treef0adcae04cc26d9ba96353e04e5685c5fa9f7626 /org.eclipse.mylyn.trac.tests/src
parent51e2e057c238a669cd982cb21e1bb3380697a699 (diff)
downloadorg.eclipse.mylyn.tasks-bbff1b6d9a0de78ada0cd8f6f40e4e6c17cdecbe.tar.gz
org.eclipse.mylyn.tasks-bbff1b6d9a0de78ada0cd8f6f40e4e6c17cdecbe.tar.xz
org.eclipse.mylyn.tasks-bbff1b6d9a0de78ada0cd8f6f40e4e6c17cdecbe.zip
NEW - bug 302792: Trac tests spuriously fail with authentication errors
https://bugs.eclipse.org/bugs/show_bug.cgi?id=302792
Diffstat (limited to 'org.eclipse.mylyn.trac.tests/src')
-rw-r--r--org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/core/TracTaskDataHandlerXmlRpcTest.java16
1 files changed, 12 insertions, 4 deletions
diff --git a/org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/core/TracTaskDataHandlerXmlRpcTest.java b/org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/core/TracTaskDataHandlerXmlRpcTest.java
index 7c7c8a8b4..45300a543 100644
--- a/org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/core/TracTaskDataHandlerXmlRpcTest.java
+++ b/org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/core/TracTaskDataHandlerXmlRpcTest.java
@@ -126,10 +126,18 @@ public class TracTaskDataHandlerXmlRpcTest extends TestCase {
assertFalse(session.needsPerformQueries());
assertEquals(Collections.emptySet(), session.getStaleTasks());
- // change ticket making sure it gets a new change time
- Thread.sleep(1500);
- ticket.putBuiltinValue(Key.DESCRIPTION, lastModified + "");
- client.updateTicket(ticket, "comment", null);
+ // try changing ticket 3x to make sure it gets a new change time
+ for (int i = 0; i < 3; i++) {
+ ticket.putBuiltinValue(Key.DESCRIPTION, lastModified + "");
+ client.updateTicket(ticket, "comment", null);
+ TracTicket updateTicket = client.getTicket(ticket.getId(), null);
+ if (updateTicket.getLastChanged().getTime() > lastModified) {
+ break;
+ } else if (i == 2) {
+ fail("Failed to update ticket modification time for ticket: " + ticket.getId());
+ }
+ Thread.sleep(1500);
+ }
repository.setSynchronizationTimeStamp((lastModified + 1) + "");
session = createSession(task);

Back to the top