This commit is contained in:
Devon Hudson 2025-03-13 23:53:23 +00:00 committed by GitHub
commit cfd78f80bc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 1 deletions

1
changelog.d/17914.bugfix Normal file
View file

@ -0,0 +1 @@
Limit event fetches in test to prevent stack size from growing too large.

View file

@ -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