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

Commit

Permalink
Give tests.server.setup_test_homeserver (nominally!) the same behav…
Browse files Browse the repository at this point in the history
…iour

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!
  • Loading branch information
reivilibre committed Dec 3, 2021
1 parent b3fd99b commit 7be88fb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -850,4 +850,7 @@ async def validate_hash(p, h):

hs.get_auth_handler().validate_hash = validate_hash

# Make the threadpool and database transactions synchronous for testing.
make_test_homeserver_synchronous(hs)

return hs

0 comments on commit 7be88fb

Please sign in to comment.