From 2b18ebe2cf096147c70a0deafdc9dcc215628266 Mon Sep 17 00:00:00 2001 From: Rajat Varyani <37879062+RajatVaryani@users.noreply.github.com> Date: Mon, 9 Sep 2019 17:02:30 +0530 Subject: [PATCH] [MM-18319] Replace t.Fatal with assert.Equal (#12082) --- app/notification_push_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/notification_push_test.go b/app/notification_push_test.go index 69fbb227bc..5efd7228a1 100644 --- a/app/notification_push_test.go +++ b/app/notification_push_test.go @@ -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) }) } }