Преглед изворни кода

test(alerting): add commented failed test

bergquist пре 9 година
родитељ
комит
44310921b5
1 измењених фајлова са 3 додато и 1 уклоњено
  1. 3 1
      pkg/services/sqlstore/alerting_test.go

+ 3 - 1
pkg/services/sqlstore/alerting_test.go

@@ -154,13 +154,15 @@ func TestAlertingDataAccess(t *testing.T) {
 
 
 			SaveAlerts(&cmd)
 			SaveAlerts(&cmd)
 
 
-			DeleteDashboard(&m.DeleteDashboardCommand{
+			err = DeleteDashboard(&m.DeleteDashboardCommand{
 				OrgId: 1,
 				OrgId: 1,
 				Slug:  testDash.Slug,
 				Slug:  testDash.Slug,
 			})
 			})
 
 
 			/* Uncomment this once we know why inTransaction2 is failing in unit tests
 			/* Uncomment this once we know why inTransaction2 is failing in unit tests
 
 
+			So(err, ShouldBeNil)
+
 			Convey("Alerts should be removed", func() {
 			Convey("Alerts should be removed", func() {
 				alerts, err2 := GetAlertsByDashboardId(testDash.Id)
 				alerts, err2 := GetAlertsByDashboardId(testDash.Id)