Skip to content

Commit 20a74b5

Browse files
authored
CSHARP-4760: Temporary disable serverless tests with failpoints (#1164)
1 parent 888aab8 commit 20a74b5

File tree

3 files changed

+12
-5
lines changed

3 files changed

+12
-5
lines changed

tests/MongoDB.Driver.Tests/Specifications/UnifiedTestSpecRunner.cs

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,11 +122,11 @@ public void LoadBalancers(JsonDrivenTestCase testCase)
122122
Run(testCase);
123123
}
124124

125-
[Category("Serverless", "SupportLoadBalancing")]
125+
[Category("SupportLoadBalancing")]
126126
[UnifiedTestsTheory("retryable_reads.tests.unified")]
127127
public void RetryableReads(JsonDrivenTestCase testCase) => Run(testCase);
128128

129-
[Category("Serverless", "SupportLoadBalancing")]
129+
[Category("SupportLoadBalancing")]
130130
[UnifiedTestsTheory("retryable_writes.tests.unified")]
131131
public void RetryableWrites(JsonDrivenTestCase testCase) => Run(testCase);
132132

@@ -145,7 +145,16 @@ public void ServerDiscoveryAndMonitoring(JsonDrivenTestCase testCase) =>
145145

146146
[Category("Serverless", "SupportLoadBalancing")]
147147
[UnifiedTestsTheory("transactions.tests.unified")]
148-
public void Transactions(JsonDrivenTestCase testCase) => Run(testCase);
148+
public void Transactions(JsonDrivenTestCase testCase)
149+
{
150+
if (testCase.Name.Contains("find does not retry in a transaction"))
151+
{
152+
// CSHARP-4761
153+
RequireServer.Check().Serverless(false);
154+
}
155+
156+
Run(testCase);
157+
}
149158

150159
[UnifiedTestsTheory("unified_test_format.tests.valid_fail")]
151160
public void UnifiedTestFormatValidFail(JsonDrivenTestCase testCase)

tests/MongoDB.Driver.Tests/Specifications/retryable-reads/RetryableReadsTestRunner.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@
3939
namespace MongoDB.Driver.Tests.Specifications.retryable_reads
4040
{
4141
[Trait("Category", "SupportLoadBalancing")]
42-
[Trait("Category", "Serverless")]
4342
public sealed class RetryableReadsTestRunner : LoggableTestClass
4443
{
4544
#region static

tests/MongoDB.Driver.Tests/Specifications/retryable-writes/RetryableWriteTestRunner.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131
namespace MongoDB.Driver.Tests.Specifications.retryable_writes
3232
{
3333
[Trait("Category", "SupportLoadBalancing")]
34-
[Trait("Category", "Serverless")]
3534
public class RetryableWriteTestRunner : LoggableTestClass
3635
{
3736
private readonly string _databaseName = DriverTestConfiguration.DatabaseNamespace.DatabaseName;

0 commit comments

Comments
 (0)