diff options
author | Patrick Cloke <clokep@users.noreply.github.com> | 2020-08-27 14:16:41 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-27 14:16:41 -0400 |
commit | b71d4a094c4370d0229fbd4545b85c049364ecf3 (patch) | |
tree | 906ac6d422bf1aaefd574d812ef9200e4ee0a037 /tests/storage | |
parent | Convert calls of async database methods to async (#8166) (diff) | |
download | synapse-b71d4a094c4370d0229fbd4545b85c049364ecf3.tar.xz |
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) |