mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2024-09-07 03:51:59 +00:00
Don't eat federation transmit errors during unit tests; fix remote presence EDU-sending test because of this
This commit is contained in:
parent
061e814195
commit
86d6232236
@ -628,7 +628,6 @@ class _TransactionQueue(object):
|
||||
|
||||
for deferred in deferreds:
|
||||
deferred.errback(e)
|
||||
yield deferred
|
||||
|
||||
finally:
|
||||
# We want to be *very* sure we delete this after we stop processing
|
||||
|
@ -719,6 +719,22 @@ class PresencePushTestCase(unittest.TestCase):
|
||||
),
|
||||
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]
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user