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
@@ -62,7 +62,7 @@ func TestAlertProvider_ToCustomAlertProvider(t *testing.T) {
provider := AlertProvider{URL: "http://example.com"}
customAlertProvider := provider.ToCustomAlertProvider(&core.Service{}, &core.Alert{}, &core.Result{}, true)
if customAlertProvider == nil {
t.Error("customAlertProvider shouldn't have been nil")
t.Fatal("customAlertProvider shouldn't have been nil")
}
if customAlertProvider != customAlertProvider {
t.Error("customAlertProvider should've been equal to customAlertProvider")