Skip to content
Snippets Groups Projects
Commit 86d62322 authored by Paul "LeoNerd" Evans's avatar Paul "LeoNerd" Evans
Browse files

Don't eat federation transmit errors during unit tests; fix remote presence...

Don't eat federation transmit errors during unit tests; fix remote presence EDU-sending test because of this
parent 061e8141
No related branches found
No related tags found
No related merge requests found
...@@ -628,7 +628,6 @@ class _TransactionQueue(object): ...@@ -628,7 +628,6 @@ class _TransactionQueue(object):
for deferred in deferreds: for deferred in deferreds:
deferred.errback(e) deferred.errback(e)
yield deferred
finally: finally:
# We want to be *very* sure we delete this after we stop processing # We want to be *very* sure we delete this after we stop processing
......
...@@ -719,6 +719,22 @@ class PresencePushTestCase(unittest.TestCase): ...@@ -719,6 +719,22 @@ class PresencePushTestCase(unittest.TestCase):
), ),
defer.succeed((200, "OK")) defer.succeed((200, "OK"))
) )
put_json.expect_call_and_return(
call("remote",
path=ANY, # Can't guarantee which txn ID will be which
data=_expect_edu("remote", "m.presence",
content={
"push": [
{"user_id": "@apple:test",
"presence": u"online",
"state": u"online",
"last_active_ago": 0},
],
}
)
),
defer.succeed((200, "OK"))
)
self.room_members = [self.u_apple, self.u_onion] self.room_members = [self.u_apple, self.u_onion]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment