diff options
author | Erik Johnston <erik@matrix.org> | 2017-01-20 15:40:04 +0000 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2017-01-20 17:10:18 +0000 |
commit | a55fa2047f813d639e2a0beed0c2d2738b0b639b (patch) | |
tree | 1c283f512f3a5a13edc06bfac928e523f656dff0 /tests/replication/slave | |
parent | Spelling (diff) | |
download | synapse-a55fa2047f813d639e2a0beed0c2d2738b0b639b.tar.xz |
Insert delta of current_state_events to be more efficient
Diffstat (limited to 'tests/replication/slave')
-rw-r--r-- | tests/replication/slave/storage/test_events.py | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/tests/replication/slave/storage/test_events.py b/tests/replication/slave/storage/test_events.py index 38fedfe690..6acb8ab758 100644 --- a/tests/replication/slave/storage/test_events.py +++ b/tests/replication/slave/storage/test_events.py @@ -119,35 +119,6 @@ class SlavedEventStoreTestCase(BaseSlavedStoreTestCase): ) @defer.inlineCallbacks - def test_get_current_state(self): - # Create the room. - yield self.persist(type="m.room.create", key="", creator=USER_ID) - yield self.replicate() - yield self.check( - "get_current_state_for_key", (ROOM_ID, "m.room.member", USER_ID), [] - ) - - # Join the room. - join1 = yield self.persist( - type="m.room.member", key=USER_ID, membership="join", - ) - yield self.replicate() - yield self.check( - "get_current_state_for_key", (ROOM_ID, "m.room.member", USER_ID), - [join1] - ) - - # Add some other user to the room. - join2 = yield self.persist( - type="m.room.member", key=USER_ID_2, membership="join", - ) - yield self.replicate() - yield self.check( - "get_current_state_for_key", (ROOM_ID, "m.room.member", USER_ID_2), - [join2] - ) - - @defer.inlineCallbacks def test_redactions(self): yield self.persist(type="m.room.create", key="", creator=USER_ID) yield self.persist(type="m.room.member", key=USER_ID, membership="join") |