From 9aea07eb617a57e0fd2ef29661a53dba3c033d51 Mon Sep 17 00:00:00 2001 From: Andrew Morgan Date: Mon, 27 Jul 2020 18:35:06 -0700 Subject: [PATCH] Be less aggressive about shaving off advances --- tests/push/test_email.py | 2 +- tests/storage/test_cleanup_extrems.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/push/test_email.py b/tests/push/test_email.py index f3e426272e96..227b0d32d047 100644 --- a/tests/push/test_email.py +++ b/tests/push/test_email.py @@ -170,7 +170,7 @@ def _check_for_mail(self): last_stream_ordering = pushers[0]["last_stream_ordering"] # Advance time a bit, so the pusher will register something has happened - self.pump() + self.pump(10) # It hasn't succeeded yet, so the stream ordering shouldn't have moved pushers = self.get_success( diff --git a/tests/storage/test_cleanup_extrems.py b/tests/storage/test_cleanup_extrems.py index 56f1bdc3ab96..d1f92925c8e9 100644 --- a/tests/storage/test_cleanup_extrems.py +++ b/tests/storage/test_cleanup_extrems.py @@ -271,7 +271,7 @@ def test_send_dummy_event(self): # Pump the reactor repeatedly so that the background updates have a # chance to run. - self.reactor.advance(10 * 60) + self.pump(20) latest_event_ids = self.get_success( self.store.get_latest_event_ids_in_room(self.room_id)