summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteffen Pingel2012-03-16 05:35:40 (EDT)
committerSteffen Pingel2012-03-16 05:35:40 (EDT)
commit57c44b843ddef124d3453c5b680e47fd69fff3f5 (patch)
treeda10e111e9ac5c8da9ba91280631591c8af8727a
parentdc1a686f1fe5cc57610efaa543984892411902b2 (diff)
downloadorg.eclipse.mylyn.tasks-57c44b843ddef124d3453c5b680e47fd69fff3f5.zip
org.eclipse.mylyn.tasks-57c44b843ddef124d3453c5b680e47fd69fff3f5.tar.gz
org.eclipse.mylyn.tasks-57c44b843ddef124d3453c5b680e47fd69fff3f5.tar.bz2
make TracTaskDataHandlerXmlRpcTest.testMarkStaleTasks() more robust
-rw-r--r--org.eclipse.mylyn.trac.tests/src/org/eclipse/mylyn/trac/tests/core/TracTaskDataHandlerXmlRpcTest.java4
1 files changed, 2 insertions, 2 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 fa43080..bd20e50 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
@@ -120,7 +120,7 @@ public class TracTaskDataHandlerXmlRpcTest extends TestCase {
assertFalse(session.needsPerformQueries());
assertEquals(Collections.emptySet(), session.getStaleTasks());
- // nothing has changed, should detect a change
+ // nothing has changed, should not detect a change
repository.setSynchronizationTimeStamp((lastModified + 1) + "");
session = createSession(task);
connector.preSynchronization(session, null);
@@ -135,7 +135,7 @@ public class TracTaskDataHandlerXmlRpcTest extends TestCase {
client.updateTicket(ticket, "comment", null);
mostRecentlyModified = TracUtil.toTracTime(ticket.getLastChanged());
// needs to be at least one second ahead of repository time stamp
- if (mostRecentlyModified > lastModified + 1) {
+ if (mostRecentlyModified >= lastModified + 1) {
break;
} else if (i == 2) {
fail("Failed to update ticket modification time: ticket id=" + ticket.getId() + ", lastModified="