diff options
author | Erik Johnston <erikj@matrix.org> | 2023-08-30 14:18:42 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-30 14:18:42 +0100 |
commit | a2e0d4cd6024462f0067c56f83c2fe5b67da2109 (patch) | |
tree | 72d3d05c778b11ec08b3533df51a5d33bf5122c8 /tests/storage/databases/main | |
parent | Merge branch 'master' into develop (diff) | |
download | synapse-a2e0d4cd6024462f0067c56f83c2fe5b67da2109.tar.xz |
Fix rare bug that broke looping calls (#16210)
* Fix rare bug that broke looping calls We can't interact with the reactor from the main thread via looping call. Introduced in v1.90.0 / #15791. * Newsfile
Diffstat (limited to 'tests/storage/databases/main')
-rw-r--r-- | tests/storage/databases/main/test_lock.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/storage/databases/main/test_lock.py b/tests/storage/databases/main/test_lock.py index f541f1d6be..650b4941ba 100644 --- a/tests/storage/databases/main/test_lock.py +++ b/tests/storage/databases/main/test_lock.py @@ -132,6 +132,7 @@ class LockTestCase(unittest.HomeserverTestCase): # We simulate the process getting stuck by cancelling the looping call # that keeps the lock active. + assert lock._looping_call lock._looping_call.stop() # Wait for the lock to timeout. @@ -403,6 +404,7 @@ class ReadWriteLockTestCase(unittest.HomeserverTestCase): # We simulate the process getting stuck by cancelling the looping call # that keeps the lock active. + assert lock._looping_call lock._looping_call.stop() # Wait for the lock to timeout. |