summary refs log tree commit diff
path: root/tests/rest/client/v1/test_register.py
diff options
context:
space:
mode:
authorAmber Brown <hawkowl@atleastfornow.net>2018-08-15 23:43:41 +1000
committerRichard van der Hoff <richard@matrix.org>2018-08-15 15:12:23 +0100
commita87af25fbb9d8938b1557ef42e31edecf1ee731c (patch)
treec10a6153c617891edb6fbb20933c2166e35057b6 /tests/rest/client/v1/test_register.py
parentUse a producer to stream back responses (diff)
downloadsynapse-a87af25fbb9d8938b1557ef42e31edecf1ee731c.tar.xz
Fix the tests
Diffstat (limited to 'tests/rest/client/v1/test_register.py')
-rw-r--r--tests/rest/client/v1/test_register.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/tests/rest/client/v1/test_register.py b/tests/rest/client/v1/test_register.py
index 4be88b8a39..6b7ff813d5 100644
--- a/tests/rest/client/v1/test_register.py
+++ b/tests/rest/client/v1/test_register.py
@@ -25,7 +25,7 @@ from synapse.rest.client.v1_only.register import register_servlets
 from synapse.util import Clock
 
 from tests import unittest
-from tests.server import make_request, setup_test_homeserver
+from tests.server import make_request, render, setup_test_homeserver
 
 
 class CreateUserServletTestCase(unittest.TestCase):
@@ -77,10 +77,7 @@ class CreateUserServletTestCase(unittest.TestCase):
         )
 
         request, channel = make_request(b"POST", url, request_data)
-        request.render(res)
-
-        # Advance the clock because it waits
-        self.clock.advance(1)
+        render(request, res, self.clock)
 
         self.assertEquals(channel.result["code"], b"200")