mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Chore: Simplify function signature for GetLatestAlertmanagerConfiguration (#79392)
This commit is contained in:
@@ -146,10 +146,7 @@ func TestNotificationPolicyService(t *testing.T) {
|
||||
t.Run("service respects concurrency token when updating", func(t *testing.T) {
|
||||
sut := createNotificationPolicyServiceSut()
|
||||
newRoute := createTestRoutingTree()
|
||||
q := models.GetLatestAlertmanagerConfigurationQuery{
|
||||
OrgID: 1,
|
||||
}
|
||||
config, err := sut.GetAMConfigStore().GetLatestAlertmanagerConfiguration(context.Background(), &q)
|
||||
config, err := sut.GetAMConfigStore().GetLatestAlertmanagerConfiguration(context.Background(), 1)
|
||||
require.NoError(t, err)
|
||||
expectedConcurrencyToken := config.ConfigurationHash
|
||||
|
||||
|
||||
Reference in New Issue
Block a user