~singpolyma/biboumi

470ba2e4e486d922b2585219b790371ec7df934a — louiz’ 2 years ago 2c4ffbf
Remove the part of the force-join test that checks the nick changed

Because we actually don’t change the nick, we ignore it, just like in the
case of a normal join (of an other resource, or an other channel on the same
server).
1 files changed, 0 insertions(+), 20 deletions(-)

M tests/end_to_end/scenarios/channel_force_join.py
M tests/end_to_end/scenarios/channel_force_join.py => tests/end_to_end/scenarios/channel_force_join.py +0 -20
@@ 21,25 21,5 @@ scenario = (
                  "/message[@from='#foo%{irc_server_one}'][@type='groupchat']/subject[not(text())]"
             ]
    ),

    # And also, that was not the same nickname, so everyone receives a nick change
    expect_unordered(
             [
                  "/presence[@from='#foo%{irc_server_one}/{nick_one}'][@to='{jid_two}/{resource_one}'][@type='unavailable']/muc_user:x/muc_user:item[@nick='Bernard']",
                  "/presence/muc_user:x/muc_user:status[@code='303']",
             ],
             [
                  "/presence[@from='#foo%{irc_server_one}/{nick_three}'][@to='{jid_two}/{resource_one}']",
             ],
             [
                  "/presence[@from='#foo%{irc_server_one}/{nick_one}'][@to='{jid_one}/{resource_one}'][@type='unavailable']/muc_user:x/muc_user:item[@nick='Bernard']",
                  "/presence/muc_user:x/muc_user:status[@code='303']",
                  "/presence/muc_user:x/muc_user:status[@code='110']",
             ],
             [
                  "/presence[@from='#foo%{irc_server_one}/{nick_three}'][@to='{jid_one}/{resource_one}']",
                  "/presence/muc_user:x/muc_user:status[@code='110']",
             ],
    ),
)