Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
uses get_success
Browse files Browse the repository at this point in the history
  • Loading branch information
dklimpel committed Aug 11, 2022
1 parent f09613f commit 1a2e96d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/storage/test_roommember.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,13 +175,13 @@ def test_room_is_locally_forgotten(self):
)

# first user forgets the room, room is not forgotten
self.assertNoResult(self.store.forget(self.u_alice, self.room))
self.get_success(self.store.forget(self.u_alice, self.room))
self.assertFalse(
self.get_success(self.store.is_locally_forgotten_room(self.room))
)

# second (last local) user forgets the room and the room is forgotten
self.assertNoResult(self.store.forget(self.u_bob, self.room))
self.get_success(self.store.forget(self.u_bob, self.room))
self.assertTrue(
self.get_success(self.store.is_locally_forgotten_room(self.room))
)
Expand All @@ -195,7 +195,7 @@ def test_join_locally_forgotten_room(self):

# after leaving and forget the room, it is forgotten
self.inject_room_member(self.room, self.u_alice, Membership.LEAVE)
self.assertNoResult(self.store.forget(self.u_alice, self.room))
self.get_success(self.store.forget(self.u_alice, self.room))
self.assertTrue(
self.get_success(self.store.is_locally_forgotten_room(self.room))
)
Expand Down

0 comments on commit 1a2e96d

Please sign in to comment.