Alerting: Create instance of alert rule generator in historian annotation tests (#81394)

* Create generator variable to ensure closures have correct context
This commit is contained in:
William Wernert
2024-01-29 11:22:43 -05:00
committed by GitHub
parent 09a78a0ae9
commit de662810cf
3 changed files with 47 additions and 32 deletions
@@ -90,6 +90,7 @@ func CreateDashboard(t *testing.T, sql *sqlstore.SQLStore, features featuremgmt.
dash, err := dashboardStore.SaveDashboard(context.Background(), cmd)
require.NoError(t, err)
require.NotNil(t, dash)
return dash
}