summary refs log tree commit diff
path: root/tests/api
diff options
context:
space:
mode:
authorNeil Johnson <neil@matrix.org>2018-08-15 10:19:48 +0100
committerNeil Johnson <neil@matrix.org>2018-08-15 10:19:48 +0100
commitb8429c7c81f96fdf24f8e297e788fd2b8b3a712a (patch)
treed460d4c9683d85e0ffadf27a8feac016c114ac5a /tests/api
parentreplace admin_email with admin_uri for greater flexibility (diff)
downloadsynapse-b8429c7c81f96fdf24f8e297e788fd2b8b3a712a.tar.xz
update error codes for resource limiting
Diffstat (limited to 'tests/api')
-rw-r--r--tests/api/test_auth.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/api/test_auth.py b/tests/api/test_auth.py
index 8c1ee9cdcc..32a2b5fc3d 100644
--- a/tests/api/test_auth.py
+++ b/tests/api/test_auth.py
@@ -458,7 +458,7 @@ class AuthTestCase(unittest.TestCase):
         with self.assertRaises(AuthError) as e:
             yield self.auth.check_auth_blocking()
         self.assertEquals(e.exception.admin_uri, self.hs.config.admin_uri)
-        self.assertEquals(e.exception.errcode, Codes.MAU_LIMIT_EXCEEDED)
+        self.assertEquals(e.exception.errcode, Codes.RESOURCE_LIMIT_EXCEED)
         self.assertEquals(e.exception.code, 403)
 
         # Ensure does not throw an error
@@ -474,5 +474,5 @@ class AuthTestCase(unittest.TestCase):
         with self.assertRaises(AuthError) as e:
             yield self.auth.check_auth_blocking()
         self.assertEquals(e.exception.admin_uri, self.hs.config.admin_uri)
-        self.assertEquals(e.exception.errcode, Codes.HS_DISABLED)
+        self.assertEquals(e.exception.errcode, Codes.RESOURCE_LIMIT_EXCEED)
         self.assertEquals(e.exception.code, 403)