diff --git a/src/Accounts/Accounts.Test/AutosaveTests.cs b/src/Accounts/Accounts.Test/AutosaveTests.cs index 98ba036218b0..198a76b65f0b 100644 --- a/src/Accounts/Accounts.Test/AutosaveTests.cs +++ b/src/Accounts/Accounts.Test/AutosaveTests.cs @@ -52,7 +52,7 @@ void ResetState() AzureSession.Instance.AuthenticationFactory = new MockTokenAuthenticationFactory(); Environment.SetEnvironmentVariable("Azure_PS_Data_Collection", "false"); PowerShellTokenCacheProvider tokenProvider = new InMemoryTokenCacheProvider(); - AzureSession.Instance.RegisterComponent(PowerShellTokenCacheProvider.PowerShellTokenCacheProviderKey, () => tokenProvider); + AzureSession.Instance.RegisterComponent(PowerShellTokenCacheProvider.PowerShellTokenCacheProviderKey, () => tokenProvider, true); } [Fact]