diff options
author | Andrew Morgan <andrew@amorgan.xyz> | 2020-10-20 17:41:55 +0100 |
---|---|---|
committer | Andrew Morgan <andrew@amorgan.xyz> | 2020-10-20 17:41:55 +0100 |
commit | 6961a007dd821d81b36b22f71e14d33ef40843b3 (patch) | |
tree | 4da30b2abb4040254d8c51beca1d90269addd409 /tests/storage | |
parent | Merge commit '9b7ac03af' into anoa/dinsic_release_1_21_x (diff) | |
parent | Convert simple_delete to async/await. (#8191) (diff) | |
download | synapse-6961a007dd821d81b36b22f71e14d33ef40843b3.tar.xz |
Merge commit 'b71d4a094' into anoa/dinsic_release_1_21_x
* commit 'b71d4a094': Convert simple_delete to async/await. (#8191)
Diffstat (limited to 'tests/storage')
-rw-r--r-- | tests/storage/test_event_push_actions.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/storage/test_event_push_actions.py b/tests/storage/test_event_push_actions.py index 238bad5b45..0e7427e57a 100644 --- a/tests/storage/test_event_push_actions.py +++ b/tests/storage/test_event_push_actions.py @@ -123,8 +123,10 @@ class EventPushActionsStoreTestCase(tests.unittest.TestCase): yield _inject_actions(6, PlAIN_NOTIF) yield _rotate(7) - yield self.store.db_pool.simple_delete( - table="event_push_actions", keyvalues={"1": 1}, desc="" + yield defer.ensureDeferred( + self.store.db_pool.simple_delete( + table="event_push_actions", keyvalues={"1": 1}, desc="" + ) ) yield _assert_counts(1, 0) |