summary refs log tree commit diff
path: root/tests/handlers
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2015-06-03 16:30:01 +0100
committerErik Johnston <erik@matrix.org>2015-06-03 16:41:51 +0100
commit1c3d844e7314dd5c1722ed77daf4bad8a056217d (patch)
tree3c71d07bcb0f1dcf23df00ff8428982756f11a46 /tests/handlers
parentLog where a request came from in federation (diff)
downloadsynapse-1c3d844e7314dd5c1722ed77daf4bad8a056217d.tar.xz
Don't needlessly compute context
Diffstat (limited to 'tests/handlers')
-rw-r--r--tests/handlers/test_federation.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/handlers/test_federation.py b/tests/handlers/test_federation.py
index f3821242bc..d392c23015 100644
--- a/tests/handlers/test_federation.py
+++ b/tests/handlers/test_federation.py
@@ -100,7 +100,7 @@ class FederationTestCase(unittest.TestCase):
             return defer.succeed({})
         self.datastore.have_events.side_effect = have_events
 
-        def annotate(ev, old_state=None):
+        def annotate(ev, old_state=None, outlier=False):
             context = Mock()
             context.current_state = {}
             context.auth_events = {}
@@ -120,7 +120,7 @@ class FederationTestCase(unittest.TestCase):
         )
 
         self.state_handler.compute_event_context.assert_called_once_with(
-            ANY, old_state=None,
+            ANY, old_state=None, outlier=False
         )
 
         self.auth.check.assert_called_once_with(ANY, auth_events={})