mirror of
https://github.com/element-hq/synapse.git
synced 2024-11-29 07:28:55 +03:00
Fix tests
This commit is contained in:
parent
a52b23d413
commit
7e7a1461f6
1 changed files with 2 additions and 0 deletions
|
@ -607,6 +607,7 @@ class StatsRoomTests(unittest.HomeserverTestCase):
|
||||||
"""
|
"""
|
||||||
|
|
||||||
self.hs.config.stats_enabled = False
|
self.hs.config.stats_enabled = False
|
||||||
|
self.handler.stats_enabled = False
|
||||||
|
|
||||||
u1 = self.register_user("u1", "pass")
|
u1 = self.register_user("u1", "pass")
|
||||||
u1token = self.login("u1", "pass")
|
u1token = self.login("u1", "pass")
|
||||||
|
@ -618,6 +619,7 @@ class StatsRoomTests(unittest.HomeserverTestCase):
|
||||||
self.assertIsNone(self._get_current_stats("user", u1))
|
self.assertIsNone(self._get_current_stats("user", u1))
|
||||||
|
|
||||||
self.hs.config.stats_enabled = True
|
self.hs.config.stats_enabled = True
|
||||||
|
self.handler.stats_enabled = True
|
||||||
|
|
||||||
self._perform_background_initial_update()
|
self._perform_background_initial_update()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue