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

Commit

Permalink
Inline calls to get_success
Browse files Browse the repository at this point in the history
  • Loading branch information
David Robertson committed May 6, 2022
1 parent a58d973 commit 7c4f6dc
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/storage/test_monthly_active_users.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,19 +222,19 @@ def test_reap_monthly_active_users_reserved_users(self):
self.store.user_add_threepid(user, "email", email, now, now)
)

d: Awaitable[None] = self.store.db_pool.runInteraction(
"initialise", self.store._initialise_reserved_users, threepids
self.get_success(
self.store.db_pool.runInteraction(
"initialise", self.store._initialise_reserved_users, threepids
)
)
self.get_success(d)

count = self.get_success(self.store.get_monthly_active_count())
self.assertEqual(count, initial_users)

users = self.get_success(self.store.get_registered_reserved_users())
self.assertEqual(len(users), reserved_user_number)

d = self.store.reap_monthly_active_users()
self.get_success(d)
self.get_success(self.store.reap_monthly_active_users())

count = self.get_success(self.store.get_monthly_active_count())
self.assertEqual(count, self.hs.config.server.max_mau_value)
Expand Down

0 comments on commit 7c4f6dc

Please sign in to comment.