Chore: Fix pass context for SetAlertStateCommand (#42135)

* fix pass ctx for SetAlertStateCommand

* fix integration test
This commit is contained in:
Will Browne
2021-11-23 16:40:09 +01:00
committed by GitHub
parent cec2d965ec
commit 96b1776856
3 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -83,7 +83,7 @@ func TestAlertingDataAccess(t *testing.T) {
State: models.AlertStateOK,
}
err := SetAlertState(context.Background(), cmd)
err := sqlStore.SetAlertState(context.Background(), cmd)
require.Nil(t, err)
})
@@ -100,7 +100,7 @@ func TestAlertingDataAccess(t *testing.T) {
State: models.AlertStateOK,
}
err = SetAlertState(context.Background(), cmd)
err = sqlStore.SetAlertState(context.Background(), cmd)
require.Error(t, err)
})