summary refs log tree commit diff
path: root/tests/rest/test_health.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/rest/test_health.py')
-rw-r--r--tests/rest/test_health.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/rest/test_health.py b/tests/rest/test_health.py
index 02a46e5fda..aaf2fb821b 100644
--- a/tests/rest/test_health.py
+++ b/tests/rest/test_health.py
@@ -27,5 +27,5 @@ class HealthCheckTests(unittest.HomeserverTestCase):
     def test_health(self):
         request, channel = self.make_request("GET", "/health", shorthand=False)
 
-        self.assertEqual(request.code, 200)
+        self.assertEqual(channel.code, 200)
         self.assertEqual(channel.result["body"], b"OK")