summary refs log tree commit diff
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2023-01-20 16:03:03 +0000
committerErik Johnston <erik@matrix.org>2023-01-20 16:03:03 +0000
commitf2a097c271b8150cee40d55f35a7374fc3041231 (patch)
tree9eb4e873d0ae00680ce0424da9bd0dfa987c0216
parentFix portdb (diff)
downloadsynapse-f2a097c271b8150cee40d55f35a7374fc3041231.tar.xz
Fix presence test
-rw-r--r--tests/module_api/test_api.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/module_api/test_api.py b/tests/module_api/test_api.py
index 9919938e80..8f88c0117d 100644
--- a/tests/module_api/test_api.py
+++ b/tests/module_api/test_api.py
@@ -404,6 +404,9 @@ class ModuleApiTestCase(HomeserverTestCase):
             self.module_api.send_local_online_presence_to([remote_user_id])
         )
 
+        # We don't always send out federation immediately, so we advance the clock.
+        self.reactor.advance(1000)
+
         # Check that a presence update was sent as part of a federation transaction
         found_update = False
         calls = (