From 3f3002e616af98f15cefbc418fe3f9ca868e9177 Mon Sep 17 00:00:00 2001 From: Erik Johnston Date: Thu, 13 Aug 2026 14:47:43 +0100 Subject: [PATCH] Don't loop time just use a single advance --- tests/test_notifier.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tests/test_notifier.py b/tests/test_notifier.py index 71de02adbb..6b578a5d03 100644 --- a/tests/test_notifier.py +++ b/tests/test_notifier.py @@ -168,10 +168,8 @@ class NotifierTestCase(tests.unittest.HomeserverTestCase): wait_d = defer.ensureDeferred(self.notifier.wait_for_stream_token(token)) - # Advance time to make the `wait_for_stream_token(...)` sleep loop - # iterate enough times to hit the the timeout. - for _ in range(11): - self.reactor.advance(Duration(seconds=1).as_secs()) + # Advance time to make the `wait_for_stream_token(...)`. + self.reactor.advance(Duration(seconds=11).as_secs()) # Make sure we gave up waiting and not caught-up (False) self.assertEqual(self.get_success(wait_d), False)