diff --git a/internal/notifier/msteams_test.go b/internal/notifier/msteams_test.go index f19bcf2e..bc52715d 100644 --- a/internal/notifier/msteams_test.go +++ b/internal/notifier/msteams_test.go @@ -85,7 +85,7 @@ func TestTeams_Send(t *testing.T) { err := notification.K8sClient.Create(context.TODO(), secret) assert.NoError(t, err) - err := teams.Send(notification, v1alpha2.Notification{ + err = teams.Send(notification, v1alpha2.Notification{ Teams: v1alpha2.Teams{ URLSecretKeySelector: v1alpha2.SecretKeySelector{ LocalObjectReference: corev1.LocalObjectReference{ diff --git a/internal/notifier/slack_test.go b/internal/notifier/slack_test.go index 67cf751f..cb5f3221 100644 --- a/internal/notifier/slack_test.go +++ b/internal/notifier/slack_test.go @@ -84,7 +84,7 @@ func TestSlack_Send(t *testing.T) { slack := Slack{} - err := slack.Send(notification, v1alpha2.Notification{ + err = slack.Send(notification, v1alpha2.Notification{ Slack: v1alpha2.Slack{ URLSecretKeySelector: v1alpha2.SecretKeySelector{ LocalObjectReference: corev1.LocalObjectReference{