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.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/rest/test_health.py b/tests/rest/test_health.py

index da325955f8..c0a2501742 100644 --- a/tests/rest/test_health.py +++ b/tests/rest/test_health.py
@@ -11,8 +11,6 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. -from http import HTTPStatus - from synapse.rest.health import HealthResource from tests import unittest @@ -26,5 +24,5 @@ class HealthCheckTests(unittest.HomeserverTestCase): def test_health(self) -> None: channel = self.make_request("GET", "/health", shorthand=False) - self.assertEqual(channel.code, HTTPStatus.OK) + self.assertEqual(channel.code, 200) self.assertEqual(channel.result["body"], b"OK")