summary refs log tree commit diff
path: root/tests
diff options
context:
space:
mode:
authorNeil Johnson <neil@matrix.org>2018-08-14 16:40:11 +0000
committerGitHub <noreply@github.com>2018-08-14 16:40:11 +0000
commitaa3220df6ad3292c556ee92d8a13a29fefddb16f (patch)
tree5eaf700425afb2936220eb73ae7c37d270d1f18c /tests
parentMerge pull request #3670 from matrix-org/neilj/mau_sync_block (diff)
parentfix setup_test_homeserver to be postgres compatible (diff)
downloadsynapse-aa3220df6ad3292c556ee92d8a13a29fefddb16f.tar.xz
Merge pull request #3692 from matrix-org/neil/fix_postgres_test_initialise_reserved_users
Neil/fix postgres test initialise reserved users
Diffstat (limited to 'tests')
-rw-r--r--tests/handlers/test_sync.py2
-rw-r--r--tests/storage/test_monthly_active_users.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/handlers/test_sync.py b/tests/handlers/test_sync.py
index cfd37f3138..8c8b65e04e 100644
--- a/tests/handlers/test_sync.py
+++ b/tests/handlers/test_sync.py
@@ -29,7 +29,7 @@ class SyncTestCase(tests.unittest.TestCase):
 
     @defer.inlineCallbacks
     def setUp(self):
-        self.hs = yield setup_test_homeserver()
+        self.hs = yield setup_test_homeserver(self.addCleanup)
         self.sync_handler = SyncHandler(self.hs)
         self.store = self.hs.get_datastore()
 
diff --git a/tests/storage/test_monthly_active_users.py b/tests/storage/test_monthly_active_users.py
index 0d58dcebc5..511acbde9b 100644
--- a/tests/storage/test_monthly_active_users.py
+++ b/tests/storage/test_monthly_active_users.py
@@ -33,7 +33,7 @@ class MonthlyActiveUsersTestCase(tests.unittest.TestCase):
 
     @defer.inlineCallbacks
     def test_initialise_reserved_users(self):
-
+        self.hs.config.max_mau_value = 5
         user1 = "@user1:server"
         user1_email = "user1@matrix.org"
         user2 = "@user2:server"