From a6c960a7f5fe2ab11e7dd2862b0b32a27ce4a2c9 Mon Sep 17 00:00:00 2001 From: wyunchi-ms Date: Mon, 31 May 2021 13:10:56 +0800 Subject: [PATCH] Fix the random failure in CI pipeline --- src/Accounts/Accounts.Test/AutosaveTests.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]