Skip to content

Commit fb7fb03

Browse files
Fix test to use new refresh interval api (#650)
* fix test to remove obsolete * change variable names
1 parent 3d51200 commit fb7fb03

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

tests/Tests.AzureAppConfiguration/FeatureManagementTests.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1201,12 +1201,11 @@ MockAsyncPageable GetTestKeys(SettingSelector selector, CancellationToken ct)
12011201
}
12021202

12031203
[Fact]
1204-
[Obsolete]
12051204
public void AlternateValidFeatureFlagFormats()
12061205
{
12071206
var mockResponse = new Mock<Response>();
12081207
var mockClient = new Mock<ConfigurationClient>(MockBehavior.Strict);
1209-
var cacheExpiration = TimeSpan.FromSeconds(1);
1208+
var refreshInterval = TimeSpan.FromSeconds(1);
12101209

12111210
mockClient.Setup(c => c.GetConfigurationSettingsAsync(It.IsAny<SettingSelector>(), It.IsAny<CancellationToken>()))
12121211
.Returns((Func<SettingSelector, CancellationToken, MockAsyncPageable>)GetTestKeys);
@@ -1233,7 +1232,7 @@ MockAsyncPageable GetTestKeys(SettingSelector selector, CancellationToken ct)
12331232
options.ClientManager = TestHelpers.CreateMockedConfigurationClientManager(testClient);
12341233
options.UseFeatureFlags(ff =>
12351234
{
1236-
ff.CacheExpirationInterval = cacheExpiration;
1235+
ff.SetRefreshInterval(refreshInterval);
12371236
ff.Select(flagKey);
12381237
});
12391238
})

0 commit comments

Comments
 (0)