summary refs log tree commit diff
path: root/tests/handlers/test_presence.py
diff options
context:
space:
mode:
authorWill Hunt <half-shot@molrams.com>2017-03-15 15:38:57 +0000
committerWill Hunt <half-shot@molrams.com>2017-03-15 15:38:57 +0000
commitc1442923735a0597177e9668141bd3c01c10dfe8 (patch)
tree7aa8927906879c776d21542d447369366aafa364 /tests/handlers/test_presence.py
parentAdd a great comment to handle_timeout for active vs sync times. (diff)
downloadsynapse-c1442923735a0597177e9668141bd3c01c10dfe8.tar.xz
Modify test_user_sync so it doesn't look at last_active_ts over last_user_sync_ts
Diffstat (limited to 'tests/handlers/test_presence.py')
-rw-r--r--tests/handlers/test_presence.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/handlers/test_presence.py b/tests/handlers/test_presence.py
index d9e8f634ae..de06a6ad30 100644
--- a/tests/handlers/test_presence.py
+++ b/tests/handlers/test_presence.py
@@ -324,7 +324,7 @@ class PresenceTimeoutTestCase(unittest.TestCase):
         state = UserPresenceState.default(user_id)
         state = state.copy_and_replace(
             state=PresenceState.ONLINE,
-            last_active_ts=now,
+            last_active_ts=0,
             last_user_sync_ts=now - SYNC_ONLINE_TIMEOUT - 1,
         )