Fix failing test

pull/5115/head
Brendan Abolivier 2019-05-09 13:59:57 +01:00
parent 8bcb78891e
commit aa5c42f5bc
2 changed files with 5 additions and 2 deletions

View File

@ -40,7 +40,7 @@ class IdentityDisabledTestCase(unittest.HomeserverTestCase):
config = self.default_config()
config.enable_3pid_lookup = False
config.trusted_third_party_id_servers = [
"testis"
"testis",
]
self.hs = self.setup_test_homeserver(config=config)
@ -119,7 +119,7 @@ class IdentityEnabledTestCase(unittest.HomeserverTestCase):
config = self.default_config()
config.enable_3pid_lookup = True
config.trusted_third_party_id_servers = [
"testis"
"testis",
]
mock_http_client = Mock(spec=[

View File

@ -164,6 +164,9 @@ class DomainRuleCheckerRoomTestCase(unittest.HomeserverTestCase):
def make_homeserver(self, reactor, clock):
config = self.default_config()
config.trusted_third_party_id_servers = [
"localhost",
]
config.spam_checker = (
DomainRuleChecker,