mirror of
https://github.com/element-hq/synapse.git
synced 2025-03-14 09:45:51 +00:00
Merge 7c1aee2427
into 59a15da433
This commit is contained in:
commit
cfd78f80bc
2 changed files with 4 additions and 1 deletions
1
changelog.d/17914.bugfix
Normal file
1
changelog.d/17914.bugfix
Normal file
|
@ -0,0 +1 @@
|
|||
Limit event fetches in test to prevent stack size from growing too large.
|
|
@ -452,7 +452,9 @@ class DatabaseOutageTestCase(unittest.HomeserverTestCase):
|
|||
with self._outage():
|
||||
# Kick off a bunch of event fetches but do not pump the reactor
|
||||
event_deferreds = []
|
||||
for event_id in self.event_ids:
|
||||
# Limit the number of event_ids otherwise the total stack size grows too
|
||||
# large for our custom twisted patch.
|
||||
for event_id in self.event_ids[0:10]:
|
||||
event_deferreds.append(ensureDeferred(self.store.get_event(event_id)))
|
||||
|
||||
# We should have maxed out on event fetcher threads
|
||||
|
|
Loading…
Add table
Reference in a new issue