matrix-org / sytest

Black-box integration testing for Matrix homeservers
Apache License 2.0
71 stars 55 forks source link

31sync/10archived-ban: "Newly banned rooms appear in the leave section of incremental sync" is defined twice #1305

Open ShadowJonathan opened 1 year ago

ShadowJonathan commented 1 year ago

With the only difference between the two tests being this diff, beginning from this line:

-         ban_user_synced( $user_a, $user_b, $room_id );
+         do_request_json_for( $user_a,
+            method => "POST",
+            uri    => "/r0/rooms/$room_id/ban",
+            content => { user_id => $user_b->user_id, reason => "testing" },
+         );
+      })->then( sub {
+         matrix_send_filler_messages_synced( $user_a, $room_id, 20 );