diff options
author | Erik Johnston <erik@matrix.org> | 2016-04-18 16:08:32 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2016-04-18 16:08:32 +0100 |
commit | eb8619e2562432cdd22a625bb612c907c63f723c (patch) | |
tree | 22e634299f36cde2ae8313188dc8d06b6c6ca501 /tests | |
parent | Merge pull request #733 from matrix-org/erikj/make_member_timeout (diff) | |
download | synapse-eb8619e2562432cdd22a625bb612c907c63f723c.tar.xz |
Create log context in Measure if one doesn't exist
Diffstat (limited to '')
-rw-r--r-- | tests/test_state.py | 4 |
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 |