update to newer Synapse APIs

This commit is contained in:
Hubert Chathi 2018-08-24 22:51:25 -04:00
parent 83caead95a
commit 16a31c6fce
2 changed files with 2 additions and 1 deletions

View File

@ -18,7 +18,7 @@ import logging
from twisted.internet import defer from twisted.internet import defer
from synapse.api.errors import StoreError, SynapseError, RoomKeysVersionError from synapse.api.errors import StoreError, SynapseError, RoomKeysVersionError
from synapse.util.async import Linearizer from synapse.util.async_helpers import Linearizer
logger = logging.getLogger(__name__) logger = logging.getLogger(__name__)

View File

@ -52,6 +52,7 @@ class E2eRoomKeysHandlerTestCase(unittest.TestCase):
@defer.inlineCallbacks @defer.inlineCallbacks
def setUp(self): def setUp(self):
self.hs = yield utils.setup_test_homeserver( self.hs = yield utils.setup_test_homeserver(
self.addCleanup,
handlers=None, handlers=None,
replication_layer=mock.Mock(), replication_layer=mock.Mock(),
) )