From cea16606baa4f4c86f753dd3ccb50e7831a23e33 Mon Sep 17 00:00:00 2001 From: Ian Fijolek Date: Thu, 20 Apr 2023 14:32:13 -0700 Subject: [PATCH] Fix tests after removing legacy compatibility --- alert_test.go | 8 -------- test/valid-config.yml | 2 +- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/alert_test.go b/alert_test.go index ff15a5d..938ba82 100644 --- a/alert_test.go +++ b/alert_test.go @@ -70,14 +70,6 @@ func TestAlertSend(t *testing.T) { "Command shell with bad template", false, }, - { - Alert{Command: CommandOrShell{ShellCommand: "echo {alert_message}"}}, - AlertNotice{MonitorName: "test", FailureCount: 1}, - "test check has failed 1 times\n", - false, - "Command shell with legacy template", - true, - }, // Test default log alert down { *NewLogAlert(), diff --git a/test/valid-config.yml b/test/valid-config.yml index 3860e95..da0a264 100644 --- a/test/valid-config.yml +++ b/test/valid-config.yml @@ -1,5 +1,5 @@ --- -check_interval: 1 +check_interval: 1s monitors: - name: Command