[v11.3.x] Alerting: Make context deadline on AlertNG service startup configurable (#96135)
Alerting: Make context deadline on AlertNG service startup configurable (#96053)
* Make alerting context deadline configurable
* Remove debug logs
* Change default timeout
* Update tests
(cherry picked from commit 1fdc48faba)
This commit is contained in:
committed by
GitHub
parent
8f10dbe12d
commit
8bc0014845
@@ -782,6 +782,7 @@ func setUpServiceTest(t *testing.T, withDashboardMock bool) cloudmigration.Servi
|
||||
fakeAccessControlService := actest.FakeService{}
|
||||
alertMetrics := metrics.NewNGAlert(prometheus.NewRegistry())
|
||||
|
||||
cfg.UnifiedAlerting.InitializationTimeout = 30 * time.Second
|
||||
ruleStore, err := ngalertstore.ProvideDBStore(cfg, featureToggles, sqlStore, mockFolder, dashboardService, fakeAccessControl)
|
||||
require.NoError(t, err)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user