summary refs log tree commit diff
path: root/tests/utils.py
diff options
context:
space:
mode:
authorErik Johnston <erikj@jki.re>2016-10-19 14:26:17 +0100
committerGitHub <noreply@github.com>2016-10-19 14:26:17 +0100
commit78c083f1591a51a3e0bbcfe3a83053e6e967b594 (patch)
treee01c9c7a720eb5105ce768d31d604d18adfda203 /tests/utils.py
parentMerge pull request #1176 from matrix-org/erikj/eager_ratelimit_check (diff)
parentRefactor test_filter to use real DataStore (diff)
downloadsynapse-78c083f1591a51a3e0bbcfe3a83053e6e967b594.tar.xz
Merge pull request #1164 from pik/error-codes
Clarify Error codes for GET /filter/
Diffstat (limited to 'tests/utils.py')
-rw-r--r--tests/utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/utils.py b/tests/utils.py
index f74526b6a7..a91d167f90 100644
--- a/tests/utils.py
+++ b/tests/utils.py
@@ -189,7 +189,7 @@ class MockHttpResource(HttpServer):
                     )
                     defer.returnValue((code, response))
                 except CodeMessageException as e:
-                    defer.returnValue((e.code, cs_error(e.msg)))
+                    defer.returnValue((e.code, cs_error(e.msg, code=e.errcode)))
 
         raise KeyError("No event can handle %s" % path)