Skip to content

Commit 759b852

Browse files
authored
Fix the random failure in CI pipeline (#15153)
Co-authored-by: wyunchi-ms <[email protected]>
1 parent 29b28b9 commit 759b852

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Accounts/Accounts.Test/AutosaveTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ void ResetState()
5252
AzureSession.Instance.AuthenticationFactory = new MockTokenAuthenticationFactory();
5353
Environment.SetEnvironmentVariable("Azure_PS_Data_Collection", "false");
5454
PowerShellTokenCacheProvider tokenProvider = new InMemoryTokenCacheProvider();
55-
AzureSession.Instance.RegisterComponent(PowerShellTokenCacheProvider.PowerShellTokenCacheProviderKey, () => tokenProvider);
55+
AzureSession.Instance.RegisterComponent(PowerShellTokenCacheProvider.PowerShellTokenCacheProviderKey, () => tokenProvider, true);
5656
}
5757

5858
[Fact]

0 commit comments

Comments
 (0)