mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 22:14:55 -04:00
Fix typing being reset causing infinite syncs (#4127)
This commit is contained in:
parent
efb9343c8c
commit
cb7a6b2379
5 changed files with 155 additions and 5 deletions
|
@ -21,6 +21,12 @@ from synapse.util import Clock
|
|||
from tests.utils import setup_test_homeserver as _sth
|
||||
|
||||
|
||||
class TimedOutException(Exception):
|
||||
"""
|
||||
A web query timed out.
|
||||
"""
|
||||
|
||||
|
||||
@attr.s
|
||||
class FakeChannel(object):
|
||||
"""
|
||||
|
@ -153,7 +159,7 @@ def wait_until_result(clock, request, timeout=100):
|
|||
x += 1
|
||||
|
||||
if x > timeout:
|
||||
raise Exception("Timed out waiting for request to finish.")
|
||||
raise TimedOutException("Timed out waiting for request to finish.")
|
||||
|
||||
clock.advance(0.1)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue