Clean up replication unit tests. (#7490)

This commit is contained in:
Erik Johnston 2020-05-13 16:01:47 +01:00 committed by GitHub
parent 00ba9c48bf
commit 18c1e52d82
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 16 additions and 51 deletions

View file

@ -24,10 +24,10 @@ from synapse.storage.roommember import RoomsForUser
from ._base import BaseSlavedStoreTestCase
USER_ID = "@feeling:blue"
USER_ID_2 = "@bright:blue"
USER_ID = "@feeling:test"
USER_ID_2 = "@bright:test"
OUTLIER = {"outlier": True}
ROOM_ID = "!room:blue"
ROOM_ID = "!room:test"
logger = logging.getLogger(__name__)
@ -239,7 +239,7 @@ class SlavedEventStoreTestCase(BaseSlavedStoreTestCase):
self.check("get_rooms_for_user_with_stream_ordering", (USER_ID_2,), set())
# limit the replication rate
repl_transport = self.server_to_client_transport
repl_transport = self._server_transport
repl_transport.autoflush = False
# build the join and message events and persist them in the same batch.