summary refs log tree commit diff
path: root/tests
diff options
context:
space:
mode:
authorMatthew Hodgson <matthew@matrix.org>2018-07-24 12:39:40 +0100
committerMatthew Hodgson <matthew@matrix.org>2018-07-24 12:39:40 +0100
commitcd241d6bda01a761fbe1ca29727dacd918fb8975 (patch)
treeb430c373ea65462a02237e3ca81ed9f56375e389 /tests
parenthandle case where types is [] on postgres correctly (diff)
downloadsynapse-cd241d6bda01a761fbe1ca29727dacd918fb8975.tar.xz
incorporate more review
Diffstat (limited to 'tests')
-rw-r--r--tests/storage/test_state.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/storage/test_state.py b/tests/storage/test_state.py
index 8924ba9f7f..b2f314e9db 100644
--- a/tests/storage/test_state.py
+++ b/tests/storage/test_state.py
@@ -158,3 +158,12 @@ class StateStoreTestCase(tests.unittest.TestCase):
             (e2.type, e2.state_key): e2,
             (e3.type, e3.state_key): e3,
         }, state)
+
+        state = yield self.store.get_state_for_event(
+            e5.event_id, [], filtered_types=[EventTypes.Member],
+        )
+
+        self.assertStateMapEqual({
+            (e1.type, e1.state_key): e1,
+            (e2.type, e2.state_key): e2,
+        }, state)