Skip to content

Commit 0c53e08

Browse files
author
Hao Chen
committed
Fixed failing tests in Authentication.
1 parent 6b27261 commit 0c53e08

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/Common/Authentication/Common.Authentication.Tests/Properties/AssemblyInfo.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
using System.Reflection;
22
using System.Runtime.InteropServices;
3+
using Xunit;
34

45
// General Information about an assembly is controlled through the following
56
// set of attributes. Change these attribute values to modify the information
@@ -33,3 +34,4 @@
3334
// [assembly: AssemblyVersion("1.0.*")]
3435
[assembly: AssemblyVersion("1.0.0.0")]
3536
[assembly: AssemblyFileVersion("1.0.0.0")]
37+
[assembly: CollectionBehavior(MaxParallelThreads = 1, DisableTestParallelization = true)]

src/Common/Authentication/Common.Authentication/Factories/ClientFactory.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,8 @@ public virtual TClient CreateClient<TClient>(AzureContext context, AzureEnvironm
9898

9999
ServiceClientCredentials creds = AzureSession.AuthenticationFactory.GetSubscriptionCloudCredentials(context, endpoint);
100100
TClient client = CreateCustomClient<TClient>(
101+
context.Environment.GetEndpointAsUri(endpoint),
101102
creds,
102-
context.Environment.GetEndpointAsUri(endpoint),
103103
GetCustomHandlers());
104104

105105
return client;

0 commit comments

Comments
 (0)