From 959e6187a18b2d836ab2eaba988cc65e50f857ea Mon Sep 17 00:00:00 2001 From: grambbledook Date: Thu, 11 Dec 2025 11:25:53 +0100 Subject: [PATCH] update tests according to recent changes --- pkg/services/updatemanager/plugins_test.go | 4 ++-- pkg/tests/apis/features/features_test.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/services/updatemanager/plugins_test.go b/pkg/services/updatemanager/plugins_test.go index 75834c44c7d..1560a5725dd 100644 --- a/pkg/services/updatemanager/plugins_test.go +++ b/pkg/services/updatemanager/plugins_test.go @@ -378,8 +378,8 @@ func setupOpenFeatureProvider(t *testing.T, flagValue bool) { err := featuremgmt.InitOpenFeature(featuremgmt.OpenFeatureConfig{ ProviderType: setting.StaticProviderType, - StaticFlags: map[string]bool{ - featuremgmt.FlagPluginsAutoUpdate: flagValue, + StaticFlags: map[string]setting.FeatureToggle{ + featuremgmt.FlagPluginsAutoUpdate: {Value: flagValue, Type: setting.Boolean}, }, }) require.NoError(t, err) diff --git a/pkg/tests/apis/features/features_test.go b/pkg/tests/apis/features/features_test.go index ab7bfea64d4..0a8c9564492 100644 --- a/pkg/tests/apis/features/features_test.go +++ b/pkg/tests/apis/features/features_test.go @@ -44,6 +44,6 @@ func TestIntegrationFeatures(t *testing.T) { "value": true, "key":"`+flag+`", "reason":"static provider evaluation result", - "variant":"enabled"}`, string(rsp.Body)) + "variant":"default"}`, string(rsp.Body)) }) }