Skip to content

Commit 1573736

Browse files
committed
Adjust category level so test runs in ci.
1 parent cb6029b commit 1573736

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

src/Microsoft.Data.SqlClient/tests/UnitTests/SimulatedServerTests/ConnectionFailoverTests.cs

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@
1111

1212
namespace Microsoft.Data.SqlClient.UnitTests.SimulatedServerTests
1313
{
14-
[Trait("Category", "flaky")]
1514
[Collection("SimulatedServerTests")]
1615
public class ConnectionFailoverTests
1716
{
1817
//TODO parameterize for transient errors
1918
[Theory]
19+
[Trait("Category", "flaky")]
2020
[InlineData(40613)]
2121
[InlineData(42108)]
2222
[InlineData(42109)]
@@ -76,6 +76,7 @@ public void TransientFault_NoFailover_DoesNotClearPool(uint errorCode)
7676
}
7777

7878
[Fact]
79+
[Trait("Category", "flaky")]
7980
public void NetworkError_TriggersFailover_ClearsPool()
8081
{
8182
// When connecting to a server with a configured failover partner,
@@ -145,6 +146,7 @@ public void NetworkError_TriggersFailover_ClearsPool()
145146
}
146147

147148
[Fact]
149+
[Trait("Category", "flaky")]
148150
public void NetworkTimeout_ShouldFail()
149151
{
150152
using TdsServer failoverServer = new(
@@ -191,6 +193,7 @@ public void NetworkTimeout_ShouldFail()
191193
}
192194

193195
[Fact]
196+
[Trait("Category", "flaky")]
194197
public void NetworkDelay_ShouldConnectToPrimary()
195198
{
196199
using TdsServer failoverServer = new(
@@ -243,6 +246,7 @@ public void NetworkDelay_ShouldConnectToPrimary()
243246
}
244247

245248
[Fact]
249+
[Trait("Category", "flaky")]
246250
public void NetworkError_WithUserProvidedPartner_RetryDisabled_ShouldConnectToFailoverPartner()
247251
{
248252
using TdsServer failoverServer = new(
@@ -294,6 +298,7 @@ public void NetworkError_WithUserProvidedPartner_RetryDisabled_ShouldConnectToFa
294298
}
295299

296300
[Fact]
301+
[Trait("Category", "flaky")]
297302
public void NetworkError_WithUserProvidedPartner_RetryEnabled_ShouldConnectToFailoverPartner()
298303
{
299304
using TdsServer failoverServer = new(
@@ -337,6 +342,7 @@ public void NetworkError_WithUserProvidedPartner_RetryEnabled_ShouldConnectToFai
337342
}
338343

339344
[Theory]
345+
[Trait("Category", "flaky")]
340346
[InlineData(40613)]
341347
[InlineData(42108)]
342348
[InlineData(42109)]
@@ -382,6 +388,7 @@ public void TransientFault_ShouldConnectToPrimary(uint errorCode)
382388
}
383389

384390
[Theory]
391+
[Trait("Category", "flaky")]
385392
[InlineData(40613)]
386393
[InlineData(42108)]
387394
[InlineData(42109)]
@@ -430,6 +437,7 @@ public void TransientFault_RetryDisabled_ShouldFail(uint errorCode)
430437
}
431438

432439
[Theory]
440+
[Trait("Category", "flaky")]
433441
[InlineData(40613)]
434442
[InlineData(42108)]
435443
[InlineData(42109)]
@@ -476,6 +484,7 @@ public void TransientFault_WithUserProvidedPartner_ShouldConnectToPrimary(uint e
476484
}
477485

478486
[Theory]
487+
[Trait("Category", "flaky")]
479488
[InlineData(40613)]
480489
[InlineData(42108)]
481490
[InlineData(42109)]

0 commit comments

Comments
 (0)