summary refs log tree commit diff
path: root/tests
diff options
context:
space:
mode:
authorpik <alexander.maznev@gmail.com>2016-10-14 15:46:54 -0500
committerpik <alexander.maznev@gmail.com>2016-10-14 15:46:54 -0500
commitd43b63818c174cfaa41fab13334b159c155dd2da (patch)
tree3262449ba6d652cc8ada0a3a593158fa2ec2ce21 /tests
parentError codes for filters (diff)
downloadsynapse-d43b63818c174cfaa41fab13334b159c155dd2da.tar.xz
Fix MockHttpRequest always returning M_UNKNOWN errcode in testing
Diffstat (limited to 'tests')
-rw-r--r--tests/utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/utils.py b/tests/utils.py
index 92d470cb48..5893145a16 100644
--- a/tests/utils.py
+++ b/tests/utils.py
@@ -188,7 +188,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)