mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 22:14:55 -04:00
Fixup tests
This commit is contained in:
parent
1a0997bbd5
commit
4ca3ef10b9
3 changed files with 15 additions and 2 deletions
|
@ -461,7 +461,9 @@ class MockHttpResource(HttpServer):
|
|||
try:
|
||||
args = [urlparse.unquote(u) for u in matcher.groups()]
|
||||
|
||||
(code, response) = yield func(mock_request, *args)
|
||||
(code, response) = yield defer.ensureDeferred(
|
||||
func(mock_request, *args)
|
||||
)
|
||||
return code, response
|
||||
except CodeMessageException as e:
|
||||
return (e.code, cs_error(e.msg, code=e.errcode))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue