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

Commit 7be88fb

Browse files
committedDec 3, 2021
Give tests.server.setup_test_homeserver (nominally!) the same behaviour
by calling into `make_test_homeserver_synchronous`. The function *could* have been inlined at this point but the function is big enough and it felt fine to leave it as is. At least there isn't a confusing name clash anymore!
1 parent b3fd99b commit 7be88fb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed
 

‎tests/server.py

+3
Original file line numberDiff line numberDiff line change
@@ -850,4 +850,7 @@ async def validate_hash(p, h):
850850

851851
hs.get_auth_handler().validate_hash = validate_hash
852852

853+
# Make the threadpool and database transactions synchronous for testing.
854+
make_test_homeserver_synchronous(hs)
855+
853856
return hs

0 commit comments

Comments
 (0)
This repository has been archived.