diff options
author | Neil Johnson <neil@fragile.org.uk> | 2018-08-18 14:39:45 +0100 |
---|---|---|
committer | Neil Johnson <neil@fragile.org.uk> | 2018-08-18 14:39:45 +0100 |
commit | e07970165f852ccbc4542f1aaf0fd1b2bc54b973 (patch) | |
tree | b78cc9c059e146354da27b9466fd1d261219ec8c /tests/handlers/test_sync.py | |
parent | special case server_notices_mxid (diff) | |
download | synapse-e07970165f852ccbc4542f1aaf0fd1b2bc54b973.tar.xz |
rename error code
Diffstat (limited to 'tests/handlers/test_sync.py')
-rw-r--r-- | tests/handlers/test_sync.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/handlers/test_sync.py b/tests/handlers/test_sync.py index a01ab471f5..31f54bbd7d 100644 --- a/tests/handlers/test_sync.py +++ b/tests/handlers/test_sync.py @@ -51,7 +51,7 @@ class SyncTestCase(tests.unittest.TestCase): self.hs.config.hs_disabled = True with self.assertRaises(ResourceLimitError) as e: yield self.sync_handler.wait_for_sync_for_user(sync_config) - self.assertEquals(e.exception.errcode, Codes.RESOURCE_LIMIT_EXCEED) + self.assertEquals(e.exception.errcode, Codes.RESOURCE_LIMIT_EXCEEDED) self.hs.config.hs_disabled = False @@ -59,7 +59,7 @@ class SyncTestCase(tests.unittest.TestCase): with self.assertRaises(ResourceLimitError) as e: yield self.sync_handler.wait_for_sync_for_user(sync_config) - self.assertEquals(e.exception.errcode, Codes.RESOURCE_LIMIT_EXCEED) + self.assertEquals(e.exception.errcode, Codes.RESOURCE_LIMIT_EXCEEDED) def _generate_sync_config(self, user_id): return SyncConfig( |