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

Commit

Permalink
fix broken test
Browse files Browse the repository at this point in the history
This test stubbed out some stuff in a very weird way. I have no idea why. It broke.
  • Loading branch information
richvdh committed Oct 25, 2018
1 parent 68c0ce6 commit 474810d
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions tests/server_notices/test_resource_limits_server_notices.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

from synapse.api.constants import EventTypes, ServerNoticeMsgType
from synapse.api.errors import ResourceLimitError
from synapse.handlers.auth import AuthHandler
from synapse.server_notices.resource_limits_server_notices import (
ResourceLimitsServerNotices,
)
Expand All @@ -13,17 +12,10 @@
from tests.utils import setup_test_homeserver


class AuthHandlers(object):
def __init__(self, hs):
self.auth_handler = AuthHandler(hs)


class TestResourceLimitsServerNotices(unittest.TestCase):
@defer.inlineCallbacks
def setUp(self):
self.hs = yield setup_test_homeserver(self.addCleanup, handlers=None)
self.hs.handlers = AuthHandlers(self.hs)
self.auth_handler = self.hs.handlers.auth_handler
self.hs = yield setup_test_homeserver(self.addCleanup)
self.server_notices_sender = self.hs.get_server_notices_sender()

# relying on [1] is far from ideal, but the only case where
Expand Down

0 comments on commit 474810d

Please sign in to comment.