فهرست منبع

test(alerting): fixes broken unittest

bergquist 9 سال پیش
والد
کامیت
00fc2e2593
1فایلهای تغییر یافته به همراه0 افزوده شده و 2 حذف شده
  1. 0 2
      pkg/services/alerting/notifier_test.go

+ 0 - 2
pkg/services/alerting/notifier_test.go

@@ -16,7 +16,6 @@ func TestAlertNotificationExtraction(t *testing.T) {
 		Convey("Parsing email notification from settings", func() {
 			json := `
             {
-                "from": "alerting@grafana.org",
                 "to": "ops@grafana.org"
             }`
 
@@ -36,7 +35,6 @@ func TestAlertNotificationExtraction(t *testing.T) {
 
 			email := not.Notifierr.(*EmailNotifier)
 			So(email.To, ShouldEqual, "ops@grafana.org")
-			So(email.From, ShouldEqual, "alerting@grafana.org")
 		})
 
 		Convey("Parsing webhook notification from settings", func() {