summary refs log tree commit diff
path: root/tests/handlers/test_stats.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2019-10-25 11:34:38 +0100
committerGitHub <noreply@github.com>2019-10-25 11:34:38 +0100
commit87259b3a3a4c1d17fc247a634320acb1fba0bc6e (patch)
treee602d9d5eea2b468beee34597c9b0c41044d38f3 /tests/handlers/test_stats.py
parentMerge pull request #6256 from matrix-org/erikj/fix_e2e_workers (diff)
parentFix tests (diff)
downloadsynapse-87259b3a3a4c1d17fc247a634320acb1fba0bc6e.tar.xz
Merge pull request #6255 from matrix-org/erikj/stats_config
Remove repeated calls to config.stats_enabled.
Diffstat (limited to 'tests/handlers/test_stats.py')
-rw-r--r--tests/handlers/test_stats.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/handlers/test_stats.py b/tests/handlers/test_stats.py
index d5c8bd7612..e0075ccd32 100644
--- a/tests/handlers/test_stats.py
+++ b/tests/handlers/test_stats.py
@@ -607,6 +607,7 @@ class StatsRoomTests(unittest.HomeserverTestCase):
         """
 
         self.hs.config.stats_enabled = False
+        self.handler.stats_enabled = False
 
         u1 = self.register_user("u1", "pass")
         u1token = self.login("u1", "pass")
@@ -618,6 +619,7 @@ class StatsRoomTests(unittest.HomeserverTestCase):
         self.assertIsNone(self._get_current_stats("user", u1))
 
         self.hs.config.stats_enabled = True
+        self.handler.stats_enabled = True
 
         self._perform_background_initial_update()