summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/dbus/test-tpl-log-store-xml.c14
1 files changed, 5 insertions, 9 deletions
diff --git a/tests/dbus/test-tpl-log-store-xml.c b/tests/dbus/test-tpl-log-store-xml.c
index fd70ee9..41bd676 100644
--- a/tests/dbus/test-tpl-log-store-xml.c
+++ b/tests/dbus/test-tpl-log-store-xml.c
@@ -523,9 +523,8 @@ test_add_superseding_event (XmlTestCaseFixture *fixture,
"account", account,
"sender", me,
"receiver", contact,
- "timestamp", timestamp + 2,
+ "timestamp", timestamp,
/* TplTextEvent */
- "original-timestamp", timestamp,
"message-token", "OMGCOMPLETELYRANDOMSTRING2",
"supersedes-token", "OMGCOMPLETELYRANDOMSTRING1",
"message-type", TP_CHANNEL_TEXT_MESSAGE_TYPE_NORMAL,
@@ -554,9 +553,8 @@ test_add_superseding_event (XmlTestCaseFixture *fixture,
"account", account,
"sender", me,
"receiver", contact,
- "timestamp", timestamp + 3,
+ "timestamp", timestamp,
/* TplTextEvent */
- "original-timestamp", timestamp,
"message-token", "OMGCOMPLETELYRANDOMSTRING3",
"supersedes-token", "OMGCOMPLETELYRANDOMSTRING1",
"message-type", TP_CHANNEL_TEXT_MESSAGE_TYPE_NORMAL,
@@ -590,15 +588,14 @@ test_add_superseding_event (XmlTestCaseFixture *fixture,
g_list_foreach (events, (GFunc) g_object_unref, NULL);
g_list_free (events);
- /* 4. Edit comes in with the wrong original-timestamp. */
+ /* 4. Edit comes in with the wrong timestamp. */
late_event = g_object_new (TPL_TYPE_TEXT_EVENT,
/* TplEvent */
"account", account,
"sender", me,
"receiver", contact,
- "timestamp", timestamp + 4,
+ "timestamp", timestamp + (60 * 60 * 24),
/* TplTextEvent */
- "original-timestamp", timestamp + (60 * 60 * 24),
"message-token", "OMGCOMPLETELYRANDOMSTRING4",
"supersedes-token", "OMGCOMPLETELYRANDOMSTRING1",
"message-type", TP_CHANNEL_TEXT_MESSAGE_TYPE_NORMAL,
@@ -638,9 +635,8 @@ test_add_superseding_event (XmlTestCaseFixture *fixture,
"account", account,
"sender", me,
"receiver", contact,
- "timestamp", timestamp + 5,
+ "timestamp", timestamp - (60 * 60 * 24),
/* TplTextEvent */
- "original-timestamp", timestamp - (60 * 60 * 24),
"message-token", "OMGCOMPLETELYRANDOMSTRING5",
"supersedes-token", "OMGCOMPLETELYRANDOMSTRING1",
"message-type", TP_CHANNEL_TEXT_MESSAGE_TYPE_NORMAL,