mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-12-11 00:27:47 -05:00
fix UTs by telling all the mock stores about the new methods for tracking retries
This commit is contained in:
parent
c46ce4fca2
commit
8ada2d2018
4 changed files with 23 additions and 3 deletions
|
|
@ -25,6 +25,7 @@ from synapse.server import HomeServer
|
|||
from synapse.federation import initialize_http_replication
|
||||
from synapse.api.events import SynapseEvent
|
||||
|
||||
from synapse.storage.transactions import DestinationsTable
|
||||
|
||||
def make_pdu(prev_pdus=[], **kwargs):
|
||||
"""Provide some default fields for making a PduTuple."""
|
||||
|
|
@ -55,10 +56,14 @@ class FederationTestCase(unittest.TestCase):
|
|||
"delivered_txn",
|
||||
"get_received_txn_response",
|
||||
"set_received_txn_response",
|
||||
"get_destination_retry_timings",
|
||||
])
|
||||
self.mock_persistence.get_received_txn_response.return_value = (
|
||||
defer.succeed(None)
|
||||
)
|
||||
self.mock_persistence.get_destination_retry_timings.return_value = (
|
||||
defer.succeed(DestinationsTable.EntryType("", 0, 0))
|
||||
)
|
||||
self.mock_config = Mock()
|
||||
self.mock_config.signing_key = [MockKey()]
|
||||
self.clock = MockClock()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue