Skip to content

Commit 1774074

Browse files
committed
Can still use ParallelTheory I guess
1 parent 0ead684 commit 1774074

File tree

3 files changed

+7
-9
lines changed

3 files changed

+7
-9
lines changed

NuGet.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
<configuration>
33
<packageSources>
44
<clear />
5+
<add key="arcade" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-eng/nuget/v3/index.json" />
56
<add key="sqlclient" value="https://sqlclientdrivers.pkgs.visualstudio.com/public/_packaging/sqlclient/nuget/v3/index.json" />
67
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" />
7-
<add key="arcade" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-eng/nuget/v3/index.json" />
88
</packageSources>
99
</configuration>

src/Microsoft.Data.SqlClient/tests/FunctionalTests/SqlConnectionBasicTests.cs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
using System.Security;
1313
using System.Threading;
1414
using System.Threading.Tasks;
15+
using Microsoft.DotNet.XUnitExtensions.Attributes;
1516
using Microsoft.SqlServer.TDS.PreLogin;
1617
using Microsoft.SqlServer.TDS.Servers;
1718
using Xunit;
@@ -295,8 +296,7 @@ public void ConnectionTestValidCredentialCombination()
295296
Assert.Equal(sqlCredential, conn.Credential);
296297
}
297298

298-
[Theory]
299-
// [ParallelTheory] // Use as soon as Microsoft.DotNet.XUnitExtensions is updated to 10.0.0+
299+
[ParallelTheory]
300300
[InlineData(60)]
301301
[InlineData(30)]
302302
[InlineData(15)]
@@ -335,8 +335,7 @@ public void ConnectionTimeoutTest(int timeout)
335335
$"{Environment.NewLine}{ex}");
336336
}
337337

338-
[Theory]
339-
// [ParallelTheory] // Use as soon as Microsoft.DotNet.XUnitExtensions is updated to 10.0.0+
338+
[ParallelTheory]
340339
[InlineData(60)]
341340
[InlineData(30)]
342341
[InlineData(15)]

src/Microsoft.Data.SqlClient/tests/FunctionalTests/SqlConnectionReadOnlyRoutingTests.cs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
using System.Collections.Generic;
77
using System.Net;
88
using System.Threading.Tasks;
9+
using Microsoft.DotNet.XUnitExtensions.Attributes;
910
using Microsoft.SqlServer.TDS.Servers;
1011
using Xunit;
1112

@@ -39,8 +40,7 @@ public void RoutedConnection()
3940
public async Task RoutedAsyncConnection()
4041
=> await RecursivelyRoutedAsyncConnection(1);
4142

42-
[Theory]
43-
// [ParallelTheory] // Use as soon as Microsoft.DotNet.XUnitExtensions is updated to 10.0.0+
43+
[ParallelTheory]
4444
[InlineData(2)]
4545
[InlineData(9)]
4646
[InlineData(11)] // The driver rejects more than 10 redirects (11 layers of redirecting servers)
@@ -81,8 +81,7 @@ public void RecursivelyRoutedConnection(int layers)
8181
}
8282
}
8383

84-
[Theory]
85-
// [ParallelTheory] // Use as soon as Microsoft.DotNet.XUnitExtensions is updated to 10.0.0+
84+
[ParallelTheory]
8685
[InlineData(2)]
8786
[InlineData(9)]
8887
[InlineData(11)] // The driver rejects more than 10 redirects (11 layers of redirecting servers)

0 commit comments

Comments
 (0)