MM-54555 - Include channel name in error (#24614)

* include channel name in error

* update multiple returns

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
Этот коммит содержится в:
Scott Bishel
2023-10-02 16:55:21 -06:00
коммит произвёл GitHub
родитель 7e3c0dfa4c
Коммит ae1decd1a7
2 изменённых файлов: 20 добавлений и 18 удалений

Просмотреть файл

@@ -74,7 +74,7 @@ func TestInviteProvider(t *testing.T) {
channel2 := th.createChannel(th.BasicTeam, model.ChannelTypeOpen)
msg := "@" + th.BasicUser2.Username + " @" + anotherUser.Username + " ~" + channel1.Name + " ~" + channel2.Name
expected := "api.command_invite.success"
expected := "api.command_invite.success\napi.command_invite.success"
runCmd(msg, expected)
checkIsMember(channel1.Id, th.BasicUser2.Id)
checkIsMember(channel2.Id, th.BasicUser2.Id)