diff options
author | pik <alexander.maznev@gmail.com> | 2016-10-14 15:46:54 -0500 |
---|---|---|
committer | pik <alexander.maznev@gmail.com> | 2016-10-14 15:46:54 -0500 |
commit | d43b63818c174cfaa41fab13334b159c155dd2da (patch) | |
tree | 3262449ba6d652cc8ada0a3a593158fa2ec2ce21 | |
parent | Error codes for filters (diff) | |
download | synapse-d43b63818c174cfaa41fab13334b159c155dd2da.tar.xz |
Fix MockHttpRequest always returning M_UNKNOWN errcode in testing
-rw-r--r-- | tests/utils.py | 2 |
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) |