summary refs log tree commit diff
diff options
context:
space:
mode:
authorBrendan Abolivier <babolivier@matrix.org>2019-05-09 13:59:57 +0100
committerBrendan Abolivier <babolivier@matrix.org>2019-05-09 13:59:57 +0100
commitaa5c42f5bc5502f06ef41e03e0ea6863d2622bab (patch)
treeab16e40ceab5425150495b5903972ea4a488e96f
parentMerge branch 'babolivier/lookup_path' of github.com:matrix-org/synapse into b... (diff)
downloadsynapse-aa5c42f5bc5502f06ef41e03e0ea6863d2622bab.tar.xz
Fix failing test
-rw-r--r--tests/rest/client/test_identity.py4
-rw-r--r--tests/rulecheck/test_domainrulecheck.py3
2 files changed, 5 insertions, 2 deletions
diff --git a/tests/rest/client/test_identity.py b/tests/rest/client/test_identity.py
index b942f1ffe6..ec260a2873 100644
--- a/tests/rest/client/test_identity.py
+++ b/tests/rest/client/test_identity.py
@@ -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=[
diff --git a/tests/rulecheck/test_domainrulecheck.py b/tests/rulecheck/test_domainrulecheck.py
index e3167aa06b..66b9cca4b3 100644
--- a/tests/rulecheck/test_domainrulecheck.py
+++ b/tests/rulecheck/test_domainrulecheck.py
@@ -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,