diff options
author | Will Hunt <half-shot@molrams.com> | 2017-03-15 15:38:57 +0000 |
---|---|---|
committer | Will Hunt <half-shot@molrams.com> | 2017-03-15 15:38:57 +0000 |
commit | c1442923735a0597177e9668141bd3c01c10dfe8 (patch) | |
tree | 7aa8927906879c776d21542d447369366aafa364 /tests/handlers | |
parent | Add a great comment to handle_timeout for active vs sync times. (diff) | |
download | synapse-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')
-rw-r--r-- | tests/handlers/test_presence.py | 2 |
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, ) |