summary refs log tree commit diff
path: root/tests/handlers/test_typing.py
diff options
context:
space:
mode:
authorAndrew Morgan <andrew@amorgan.xyz>2020-10-19 14:59:45 +0100
committerAndrew Morgan <andrew@amorgan.xyz>2020-10-19 14:59:45 +0100
commit383a87e0e255f44f15cf3933e559bea7d00418f9 (patch)
treed13ba9cfec18e893055d778f487a18da9743666f /tests/handlers/test_typing.py
parentMerge commit 'c36228c40' into anoa/dinsic_release_1_21_x (diff)
parentConvert synapse.api to async/await (#8031) (diff)
downloadsynapse-383a87e0e255f44f15cf3933e559bea7d00418f9.tar.xz
Merge commit 'd4a7829b1' into anoa/dinsic_release_1_21_x
* commit 'd4a7829b1':
  Convert synapse.api to async/await (#8031)
Diffstat (limited to 'tests/handlers/test_typing.py')
-rw-r--r--tests/handlers/test_typing.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/handlers/test_typing.py b/tests/handlers/test_typing.py

index 5878f74175..b7d0adb10e 100644 --- a/tests/handlers/test_typing.py +++ b/tests/handlers/test_typing.py
@@ -126,10 +126,10 @@ class TypingNotificationsTestCase(unittest.HomeserverTestCase): self.room_members = [] - def check_user_in_room(room_id, user_id): + async def check_user_in_room(room_id, user_id): if user_id not in [u.to_string() for u in self.room_members]: raise AuthError(401, "User is not in the room") - return defer.succeed(None) + return None hs.get_auth().check_user_in_room = check_user_in_room