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

Commit

Permalink
Tweak test
Browse files Browse the repository at this point in the history
  • Loading branch information
David Robertson committed Mar 10, 2023
1 parent bc619d9 commit 1ad1791
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions tests/federation/test_federation_catch_up.py
Original file line number Diff line number Diff line change
Expand Up @@ -598,8 +598,8 @@ def test_catch_up_is_not_blocked_by_local_event_in_partial_state_room(
# - e1: message from u1
# - e2: remote user u2:host2 joins
# - e3: message from u1
# - e4: u1 accidentally kicks user u2:host2
# - e5: u1 invites user u2:host2
# - e4: message from u1
# - e5: u1 kicks user u2:host2
# - catchup to begin for host2, after having last successfully sent them e3
per_dest_queue, sent_pdus = self.make_fake_destination_queue()

Expand All @@ -622,19 +622,13 @@ def test_catch_up_is_not_blocked_by_local_event_in_partial_state_room(
event_injection.inject_member_event(self.hs, room, "@u2:host2", "join")
).event_id
event_id_3 = self.helper.send(room, "Nicholas,", tok=u1_token)["event_id"]
event_id_4 = self.helper.change_membership(
room,
src="@u1:test",
targ="@u2:host2",
membership="leave",
tok=u1_token,
)["event_id"]
event_id_4 = self.helper.send(room, "how's the hand?", tok=u1_token)["event_id"]
event_id_5 = self.get_success(
event_injection.inject_member_event(
self.hs,
room,
sender="@u1:test",
target="@u2:host2",
target="@u3:host2",
membership="invite",
)
).event_id
Expand Down

0 comments on commit 1ad1791

Please sign in to comment.