mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
test(alerting): fixes broken unittest
This commit is contained in:
@@ -16,7 +16,6 @@ func TestAlertNotificationExtraction(t *testing.T) {
|
|||||||
Convey("Parsing email notification from settings", func() {
|
Convey("Parsing email notification from settings", func() {
|
||||||
json := `
|
json := `
|
||||||
{
|
{
|
||||||
"from": "alerting@grafana.org",
|
|
||||||
"to": "ops@grafana.org"
|
"to": "ops@grafana.org"
|
||||||
}`
|
}`
|
||||||
|
|
||||||
@@ -36,7 +35,6 @@ func TestAlertNotificationExtraction(t *testing.T) {
|
|||||||
|
|
||||||
email := not.Notifierr.(*EmailNotifier)
|
email := not.Notifierr.(*EmailNotifier)
|
||||||
So(email.To, ShouldEqual, "ops@grafana.org")
|
So(email.To, ShouldEqual, "ops@grafana.org")
|
||||||
So(email.From, ShouldEqual, "alerting@grafana.org")
|
|
||||||
})
|
})
|
||||||
|
|
||||||
Convey("Parsing webhook notification from settings", func() {
|
Convey("Parsing webhook notification from settings", func() {
|
||||||
|
|||||||
Reference in New Issue
Block a user