File tree Expand file tree Collapse file tree 3 files changed +12
-5
lines changed
tests/MongoDB.Driver.Tests/Specifications Expand file tree Collapse file tree 3 files changed +12
-5
lines changed Original file line number Diff line number Diff line change @@ -122,11 +122,11 @@ public void LoadBalancers(JsonDrivenTestCase testCase)
122
122
Run ( testCase ) ;
123
123
}
124
124
125
- [ Category ( "Serverless" , " SupportLoadBalancing") ]
125
+ [ Category ( "SupportLoadBalancing" ) ]
126
126
[ UnifiedTestsTheory ( "retryable_reads.tests.unified" ) ]
127
127
public void RetryableReads ( JsonDrivenTestCase testCase ) => Run ( testCase ) ;
128
128
129
- [ Category ( "Serverless" , " SupportLoadBalancing") ]
129
+ [ Category ( "SupportLoadBalancing" ) ]
130
130
[ UnifiedTestsTheory ( "retryable_writes.tests.unified" ) ]
131
131
public void RetryableWrites ( JsonDrivenTestCase testCase ) => Run ( testCase ) ;
132
132
@@ -145,7 +145,16 @@ public void ServerDiscoveryAndMonitoring(JsonDrivenTestCase testCase) =>
145
145
146
146
[ Category ( "Serverless" , "SupportLoadBalancing" ) ]
147
147
[ 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
+ }
149
158
150
159
[ UnifiedTestsTheory ( "unified_test_format.tests.valid_fail" ) ]
151
160
public void UnifiedTestFormatValidFail ( JsonDrivenTestCase testCase )
Original file line number Diff line number Diff line change 39
39
namespace MongoDB . Driver . Tests . Specifications . retryable_reads
40
40
{
41
41
[ Trait ( "Category" , "SupportLoadBalancing" ) ]
42
- [ Trait ( "Category" , "Serverless" ) ]
43
42
public sealed class RetryableReadsTestRunner : LoggableTestClass
44
43
{
45
44
#region static
Original file line number Diff line number Diff line change 31
31
namespace MongoDB . Driver . Tests . Specifications . retryable_writes
32
32
{
33
33
[ Trait ( "Category" , "SupportLoadBalancing" ) ]
34
- [ Trait ( "Category" , "Serverless" ) ]
35
34
public class RetryableWriteTestRunner : LoggableTestClass
36
35
{
37
36
private readonly string _databaseName = DriverTestConfiguration . DatabaseNamespace . DatabaseName ;
You can’t perform that action at this time.
0 commit comments