summary refs log tree commit diff
path: root/tests/server_notices
diff options
context:
space:
mode:
authorRichard van der Hoff <richard@matrix.org>2019-03-19 11:06:56 +0000
committerRichard van der Hoff <richard@matrix.org>2019-03-19 11:44:43 +0000
commit053c50bcb318af74b5b2d20dc7ae1d85689527b6 (patch)
tree10f07a3074737944d9fac478c440c91989cd3946 /tests/server_notices
parentFix registration test (diff)
downloadsynapse-053c50bcb318af74b5b2d20dc7ae1d85689527b6.tar.xz
Fix resource limits tests
Make sure that we have a `server_notices_mxid` set, given that we are relying
on it.
Diffstat (limited to 'tests/server_notices')
-rw-r--r--tests/server_notices/test_resource_limits_server_notices.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/server_notices/test_resource_limits_server_notices.py b/tests/server_notices/test_resource_limits_server_notices.py
index b1551df7ca..3bd9f1e9c1 100644
--- a/tests/server_notices/test_resource_limits_server_notices.py
+++ b/tests/server_notices/test_resource_limits_server_notices.py
@@ -9,13 +9,16 @@ from synapse.server_notices.resource_limits_server_notices import (
 )
 
 from tests import unittest
-from tests.utils import setup_test_homeserver
+from tests.utils import default_config, setup_test_homeserver
 
 
 class TestResourceLimitsServerNotices(unittest.TestCase):
     @defer.inlineCallbacks
     def setUp(self):
-        self.hs = yield setup_test_homeserver(self.addCleanup)
+        hs_config = default_config(name="test")
+        hs_config.server_notices_mxid = "@server:test"
+
+        self.hs = yield setup_test_homeserver(self.addCleanup, config=hs_config)
         self.server_notices_sender = self.hs.get_server_notices_sender()
 
         # relying on [1] is far from ideal, but the only case where