diff options
author | Richard van der Hoff <richard@matrix.org> | 2020-12-15 14:51:25 +0000 |
---|---|---|
committer | Richard van der Hoff <richard@matrix.org> | 2020-12-15 22:32:12 +0000 |
commit | 7eebe4b3fc3129e4571d58c3cea5eeccc584e072 (patch) | |
tree | 3dff8e5f146206d5724162f859491bd22a52f4a9 /tests/rest/test_health.py | |
parent | Preparatory refactoring of the SamlHandlerTestCase (#8938) (diff) | |
download | synapse-7eebe4b3fc3129e4571d58c3cea5eeccc584e072.tar.xz |
Replace `request.code` with `channel.code`
The two are equivalent, but really we want to check the HTTP result that got returned to the channel, not the code that the Request object *intended* to return to the channel.
Diffstat (limited to 'tests/rest/test_health.py')
-rw-r--r-- | tests/rest/test_health.py | 2 |
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") |