summary refs log tree commit diff
path: root/tests/test_state.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2016-04-18 19:03:57 +0100
committerErik Johnston <erik@matrix.org>2016-04-18 19:03:57 +0100
commit481119f7d60de0f7588ef220e599697b37e1bf33 (patch)
tree22e634299f36cde2ae8313188dc8d06b6c6ca501 /tests/test_state.py
parentMerge pull request #733 from matrix-org/erikj/make_member_timeout (diff)
parentCreate log context in Measure if one doesn't exist (diff)
downloadsynapse-481119f7d60de0f7588ef220e599697b37e1bf33.tar.xz
Merge pull request #734 from matrix-org/erikj/measure
Create log context in Measure if one doesn't exist
Diffstat (limited to 'tests/test_state.py')
-rw-r--r--tests/test_state.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_state.py b/tests/test_state.py
index a1ea7ef672..1a11bbcee0 100644
--- a/tests/test_state.py
+++ b/tests/test_state.py
@@ -140,13 +140,13 @@ class StateTestCase(unittest.TestCase):
                 "add_event_hashes",
             ]
         )
-        hs = Mock(spec=[
+        hs = Mock(spec_set=[
             "get_datastore", "get_auth", "get_state_handler", "get_clock",
         ])
         hs.get_datastore.return_value = self.store
         hs.get_state_handler.return_value = None
-        hs.get_auth.return_value = Auth(hs)
         hs.get_clock.return_value = MockClock()
+        hs.get_auth.return_value = Auth(hs)
 
         self.state = StateHandler(hs)
         self.event_id = 0