Fix tests after removing legacy compatibility
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
IamTheFij 2023-04-20 14:32:13 -07:00
parent a03f430d0e
commit cea16606ba
2 changed files with 1 additions and 9 deletions

View File

@ -70,14 +70,6 @@ func TestAlertSend(t *testing.T) {
"Command shell with bad template", "Command shell with bad template",
false, 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 // Test default log alert down
{ {
*NewLogAlert(), *NewLogAlert(),

View File

@ -1,5 +1,5 @@
--- ---
check_interval: 1 check_interval: 1s
monitors: monitors:
- name: Command - name: Command