diff --git a/notifier/notifier_test.go b/notifier/notifier_test.go index 5f04aeff7..ee7d60600 100644 --- a/notifier/notifier_test.go +++ b/notifier/notifier_test.go @@ -221,9 +221,9 @@ func configureNotifier(t *testing.T) { senderSettings := map[string]interface{}{ "type": "test", } - sendersNameToType := make(map[string]string) + notifier.sendersNameToType["test"] = "test" - sender.EXPECT().Init(senderSettings, logger, location, "15:04 02.01.2006", sendersNameToType).Return(nil) + sender.EXPECT().Init(senderSettings, logger, location, "15:04 02.01.2006", notifier.sendersNameToType).Return(nil) notifier.RegisterSender(senderSettings, sender) //nolint