Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Do not call setup_background_tasks twice in tests. #16150

Merged
merged 2 commits into from
Aug 22, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions changelog.d/16150.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Clean-up calling `setup_background_tasks` in unit tests.
2 changes: 0 additions & 2 deletions tests/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -1000,8 +1000,6 @@ def setup_test_homeserver(
hs.tls_server_context_factory = Mock()

hs.setup()
if homeserver_to_use == TestHomeServer:
hs.setup_background_tasks()

if isinstance(db_engine, PostgresEngine):
database_pool = hs.get_datastores().databases[0]
Expand Down