mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
[MM-18319] Replace t.Fatal with assert.Equal (#12082)
This commit is contained in:
committed by
Miguel de la Cruz
parent
98f7bdcb43
commit
2b18ebe2cf
@@ -881,7 +881,7 @@ func TestGetPushNotificationMessage(t *testing.T) {
|
||||
*cfg.EmailSettings.PushNotificationContents = pushNotificationContents
|
||||
})
|
||||
|
||||
if actualMessage := th.App.getPushNotificationMessage(
|
||||
actualMessage := th.App.getPushNotificationMessage(
|
||||
tc.Message,
|
||||
tc.explicitMention,
|
||||
tc.channelWideMention,
|
||||
@@ -891,9 +891,9 @@ func TestGetPushNotificationMessage(t *testing.T) {
|
||||
tc.ChannelType,
|
||||
tc.replyToThreadType,
|
||||
utils.GetUserTranslations(locale),
|
||||
); actualMessage != tc.ExpectedMessage {
|
||||
t.Fatalf("Received incorrect push notification message `%v`, expected `%v`", actualMessage, tc.ExpectedMessage)
|
||||
}
|
||||
)
|
||||
|
||||
assert.Equal(t, tc.ExpectedMessage, actualMessage)
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user