1
0

Wait a bit longer in the test for user_ips to update.

Signed-off-by: Olivier Wilkinson (reivilibre) <olivier@librepush.net>
This commit is contained in:
Olivier Wilkinson (reivilibre)
2021-07-08 10:43:15 +01:00
parent 9753b8bf7a
commit cc6b61ca64

View File

@@ -44,9 +44,9 @@ class PhoneHomeTestCase(HomeserverTestCase):
# Send a message (this counts as activity)
self.helper.send(room_id, "message2", tok=access_token)
# We have to wait up to 5 seconds for _update_client_ips_batch to get
# called and update the user_ips table in a batch.
self.reactor.advance(5.1)
# We have to wait some time for _update_client_ips_batch to get
# called and update the user_ips table.
self.reactor.advance(2 * 60 * 60)
# *Now* the user is counted.
r30_results = self.get_success(self.hs.get_datastore().count_r30_users())