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>2019-07-17 17:34:13 +0100
committerGitHub <noreply@github.com>2019-07-17 17:34:13 +0100
commit2091c91fdec0c90360992b4dbbd71048b940bcb0 (patch)
treef6848597bd0ad9f773e011364f501de5a44e4e9a /tests/unittest.py
parentFix redaction authentication (#5700) (diff)
downloadsynapse-2091c91fdec0c90360992b4dbbd71048b940bcb0.tar.xz
More refactoring in `get_events_as_list` (#5707)
We can now use `_get_events_from_cache_or_db` rather than going right back to
the database, which means that (a) we can benefit from caching, and (b) it
opens the way forward to more extensive checks on the original event.

We now always require the original event to exist before we will serve up a
redaction.
Diffstat (limited to 'tests/unittest.py')
-rw-r--r--tests/unittest.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/unittest.py b/tests/unittest.py
index cabe787cb4..f5fae21317 100644
--- a/tests/unittest.py
+++ b/tests/unittest.py
@@ -447,6 +447,7 @@ class HomeserverTestCase(TestCase):
         # Create the user
         request, channel = self.make_request("GET", "/_matrix/client/r0/admin/register")
         self.render(request)
+        self.assertEqual(channel.code, 200)
         nonce = channel.json_body["nonce"]
 
         want_mac = hmac.new(key=b"shared", digestmod=hashlib.sha1)