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