From ce0b0ae968681aa862e0615252e8d92301f1cce1 Mon Sep 17 00:00:00 2001 From: hunterlong Date: Mon, 13 Apr 2020 04:30:16 -0700 Subject: [PATCH] tests --- notifiers/command_test.go | 2 +- notifiers/discord_test.go | 2 +- notifiers/email_test.go | 2 +- notifiers/mobile_test.go | 2 +- notifiers/notifiers_test.go | 2 +- notifiers/pushover_test.go | 2 +- notifiers/telegram_test.go | 2 +- notifiers/twilio_test.go | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/notifiers/command_test.go b/notifiers/command_test.go index db3d1e7f..8207c76b 100644 --- a/notifiers/command_test.go +++ b/notifiers/command_test.go @@ -45,7 +45,7 @@ func TestCommandNotifier(t *testing.T) { }) t.Run("Command Test", func(t *testing.T) { - err := Command.OnTest() + _, err := Command.OnTest() assert.Nil(t, err) }) diff --git a/notifiers/discord_test.go b/notifiers/discord_test.go index 49f18a7f..584a9152 100644 --- a/notifiers/discord_test.go +++ b/notifiers/discord_test.go @@ -57,7 +57,7 @@ func TestDiscordNotifier(t *testing.T) { }) t.Run("discord Test", func(t *testing.T) { - err := Discorder.OnTest() + _, err := Discorder.OnTest() assert.Nil(t, err) }) diff --git a/notifiers/email_test.go b/notifiers/email_test.go index 899baae2..3237dbf5 100644 --- a/notifiers/email_test.go +++ b/notifiers/email_test.go @@ -92,7 +92,7 @@ func TestEmailNotifier(t *testing.T) { }) t.Run("email Test", func(t *testing.T) { - err := email.OnTest() + _, err := email.OnTest() assert.Nil(t, err) }) diff --git a/notifiers/mobile_test.go b/notifiers/mobile_test.go index dfbc1869..1e24b683 100644 --- a/notifiers/mobile_test.go +++ b/notifiers/mobile_test.go @@ -65,7 +65,7 @@ func TestMobileNotifier(t *testing.T) { t.Run("Mobile Test", func(t *testing.T) { t.SkipNow() - err := Mobile.OnTest() + _, err := Mobile.OnTest() assert.Nil(t, err) }) diff --git a/notifiers/notifiers_test.go b/notifiers/notifiers_test.go index a0690c58..9daca8fb 100644 --- a/notifiers/notifiers_test.go +++ b/notifiers/notifiers_test.go @@ -63,7 +63,7 @@ func TestAllNotifiers(t *testing.T) { err = n.Notifier.OnFailure(exampleService, exampleFailure) assert.Nil(t, err) - err = n.Notifier.OnTest() + _, err = n.Notifier.OnTest() assert.Nil(t, err) } diff --git a/notifiers/pushover_test.go b/notifiers/pushover_test.go index a103cc8f..c8f17642 100644 --- a/notifiers/pushover_test.go +++ b/notifiers/pushover_test.go @@ -54,7 +54,7 @@ func TestPushoverNotifier(t *testing.T) { }) t.Run("Pushover Test", func(t *testing.T) { - err := Pushover.OnTest() + _, err := Pushover.OnTest() assert.Nil(t, err) }) diff --git a/notifiers/telegram_test.go b/notifiers/telegram_test.go index 3e33961f..ce3480c0 100644 --- a/notifiers/telegram_test.go +++ b/notifiers/telegram_test.go @@ -64,7 +64,7 @@ func TestTelegramNotifier(t *testing.T) { }) t.Run("Telegram Test", func(t *testing.T) { - err := Telegram.OnTest() + _, err := Telegram.OnTest() assert.Nil(t, err) }) diff --git a/notifiers/twilio_test.go b/notifiers/twilio_test.go index 63429060..c13e8ba0 100644 --- a/notifiers/twilio_test.go +++ b/notifiers/twilio_test.go @@ -68,7 +68,7 @@ func TestTwilioNotifier(t *testing.T) { }) t.Run("Twilio Test", func(t *testing.T) { - err := Twilio.OnTest() + _, err := Twilio.OnTest() assert.Nil(t, err) })