mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2024-10-01 11:49:51 -04:00
Fix resource limits tests
Make sure that we have a `server_notices_mxid` set, given that we are relying on it.
This commit is contained in:
parent
45bb54a6c6
commit
053c50bcb3
@ -9,13 +9,16 @@ from synapse.server_notices.resource_limits_server_notices import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
from tests import unittest
|
from tests import unittest
|
||||||
from tests.utils import setup_test_homeserver
|
from tests.utils import default_config, setup_test_homeserver
|
||||||
|
|
||||||
|
|
||||||
class TestResourceLimitsServerNotices(unittest.TestCase):
|
class TestResourceLimitsServerNotices(unittest.TestCase):
|
||||||
@defer.inlineCallbacks
|
@defer.inlineCallbacks
|
||||||
def setUp(self):
|
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()
|
self.server_notices_sender = self.hs.get_server_notices_sender()
|
||||||
|
|
||||||
# relying on [1] is far from ideal, but the only case where
|
# relying on [1] is far from ideal, but the only case where
|
||||||
|
Loading…
Reference in New Issue
Block a user