summary refs log tree commit diff
path: root/tests/unittest.py
diff options
context:
space:
mode:
authorRichard van der Hoff <1389908+richvdh@users.noreply.github.com>2020-01-06 17:46:31 +0000
committerGitHub <noreply@github.com>2020-01-06 17:46:31 +0000
commit1807db5e73885933075b2d78022dd3547630265c (patch)
tree886766991b090d043456e376a6fb8b8cb5d50a50 /tests/unittest.py
parentFix some test failures when frozen_dicts are enabled (#6642) (diff)
parentchangelog (diff)
downloadsynapse-1807db5e73885933075b2d78022dd3547630265c.tar.xz
Merge pull request #6629 from matrix-org/rav/kill_event_reference_hashes
Remove a bunch of unused code from event creation
Diffstat (limited to 'tests/unittest.py')
-rw-r--r--tests/unittest.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/tests/unittest.py b/tests/unittest.py

index cbda237278..ddcd4becfe 100644 --- a/tests/unittest.py +++ b/tests/unittest.py
@@ -531,10 +531,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, @@ -544,7 +540,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, ) )