Improve tests for alerting providers

This commit is contained in:
TwinProduction
2021-02-19 19:06:20 -05:00
parent 9649d80388
commit 50435f4030
8 changed files with 136 additions and 21 deletions

View File

@ -38,7 +38,7 @@ func (provider *AlertProvider) ToCustomAlertProvider(service *core.Service, aler
} else {
prefix = ":x:"
}
results += fmt.Sprintf("%s - `%s`\n", prefix, conditionResult.Condition)
results += fmt.Sprintf("%s - `%s`\\n", prefix, conditionResult.Condition)
}
return &custom.AlertProvider{
URL: provider.WebhookURL,