summary refs log tree commit diff
path: root/tests
diff options
context:
space:
mode:
authorRichard van der Hoff <richard@matrix.org>2020-01-03 16:19:55 +0000
committerRichard van der Hoff <richard@matrix.org>2020-01-06 13:45:33 +0000
commit3bef62488e5cff4dfb33454f2f2e18cc928f319b (patch)
tree8b8c819039eef4d197ba16952eb65b7df3d7171e /tests
parentRemove unused hashes and depths from create_new_client_event params (diff)
downloadsynapse-3bef62488e5cff4dfb33454f2f2e18cc928f319b.tar.xz
Remove unused hashes and depths from create_event params
Diffstat (limited to 'tests')
-rw-r--r--tests/unittest.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/tests/unittest.py b/tests/unittest.py
index b30b7d1718..07b50c0ccd 100644
--- a/tests/unittest.py
+++ b/tests/unittest.py
@@ -522,10 +522,6 @@ class HomeserverTestCase(TestCase):
         secrets = self.hs.get_secrets()
         requester = Requester(user, None, False, None, None)
 
-        prev_events_and_hashes = None
-        if prev_event_ids:
-            prev_events_and_hashes = [[p, {}, 0] for p in prev_event_ids]
-
         event, context = self.get_success(
             event_creator.create_event(
                 requester,
@@ -535,7 +531,7 @@ class HomeserverTestCase(TestCase):
                     "sender": user.to_string(),
                     "content": {"body": secrets.token_hex(), "msgtype": "m.text"},
                 },
-                prev_events_and_hashes=prev_events_and_hashes,
+                prev_event_ids=prev_event_ids,
             )
         )