Improve tests for alerting providers

This commit is contained in:
TwinProduction committed 2021-02-19 19:06:20 -05:00
1 parent 9649d80388
commit 50435f4030
8 files changed
+136 -21

No files matched your search

+1 -1
View File
@@ -35,7 +35,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,