mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-08-06 23:54:22 -04:00
Quick fix to ensure cache descriptors always return deferreds
This commit is contained in:
parent
bcfc647e4d
commit
d0d8a22c13
4 changed files with 6 additions and 6 deletions
|
@ -325,9 +325,9 @@ class DescriptorTestCase(unittest.TestCase):
|
|||
self.assertEqual(len(obj.fn.cache.cache), 3)
|
||||
|
||||
r = obj.fn(1, 2)
|
||||
self.assertEqual(r, ["spam", "eggs"])
|
||||
self.assertEqual(r.result, ["spam", "eggs"])
|
||||
r = obj.fn(1, 3)
|
||||
self.assertEqual(r, ["chips"])
|
||||
self.assertEqual(r.result, ["chips"])
|
||||
obj.mock.assert_not_called()
|
||||
|
||||
def test_cache_iterable_with_sync_exception(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue