summary refs log tree commit diff
path: root/tests
diff options
context:
space:
mode:
authorShay <hillerys@element.io>2023-07-23 16:32:01 -0700
committerGitHub <noreply@github.com>2023-07-23 16:32:01 -0700
commit5c7364fea57e24ae3ce2ac833a3521abd58312db (patch)
tree2df6dd437d8c6f978569b50ad0fa01f0074c076c /tests
parentActually stop reading from column `user_id` of tables `profiles` (#15955) (diff)
downloadsynapse-5c7364fea57e24ae3ce2ac833a3521abd58312db.tar.xz
Properly handle redactions of creation events (#15973)
Diffstat (limited to 'tests')
-rw-r--r--tests/events/test_utils.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/tests/events/test_utils.py b/tests/events/test_utils.py
index 6a52af4d82..978612e432 100644
--- a/tests/events/test_utils.py
+++ b/tests/events/test_utils.py
@@ -225,9 +225,14 @@ class PruneEventTestCase(stdlib_unittest.TestCase):
             },
         )
 
-        # After MSC2176, create events get nothing redacted.
+        # After MSC2176, create events should preserve field `content`
         self.run_test(
-            {"type": "m.room.create", "content": {"not_a_real_key": True}},
+            {
+                "type": "m.room.create",
+                "content": {"not_a_real_key": True},
+                "origin": "some_homeserver",
+                "nonsense_field": "some_random_garbage",
+            },
             {
                 "type": "m.room.create",
                 "content": {"not_a_real_key": True},