Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Clean up replication unit tests. #7490

Merged
merged 2 commits into from
May 13, 2020
Merged

Conversation

erikjohnston
Copy link
Member

This mainly makes tests.replication.slave tests use the same base class as tests.replication.tcp, so that we can remove the various gut wrenching that takes place in tests.replication.slave and instead properly spawn two separate HS objects like we do for the tcp tests.

USER_ID = "@feeling:blue"
USER_ID_2 = "@bright:blue"
USER_ID = "@feeling:test"
USER_ID_2 = "@bright:test"
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the correct server name used by the test HS objects

Copy link
Member

@anoadragon453 anoadragon453 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Much cleaner!

@erikjohnston erikjohnston merged commit 18c1e52 into develop May 13, 2020
@erikjohnston erikjohnston deleted the erikj/cleanup_replication_tests branch May 13, 2020 15:01
phil-flex pushed a commit to phil-flex/synapse that referenced this pull request Jun 16, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants