File tree 2 files changed +6
-2
lines changed
tests/MongoDB.Driver.Core.Tests/Core/Operations
2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -537,7 +537,6 @@ public void Execute_should_throw_when_ReadConcern_is_set_but_not_supported(
537
537
ReadConcern = ReadConcern . Majority
538
538
} ;
539
539
540
- async = false;
541
540
var exception = Record . Exception ( ( ) => { ExecuteOperation ( subject , async ) ; } ) ;
542
541
543
542
exception . Should ( ) . BeOfType < MongoClientException > ( ) ;
Original file line number Diff line number Diff line change @@ -113,13 +113,18 @@ public void Execute_should_throw_when_a_write_concern_error_occurs(
113
113
bool async)
114
114
{
115
115
RequireServer . Check ( ) . Supports ( Feature . CommandsThatWriteAcceptWriteConcern ) . ClusterType ( ClusterType . ReplicaSet ) ;
116
+ var actualVersion = CoreTestConfiguration. ServerVersion ;
117
+ if ( actualVersion . Major == 3 && actualVersion . Minor == 5 && actualVersion . Patch == 2 )
118
+ {
119
+ // skip test on any version of 3.5.2
120
+ return ; // TODO: remove later
121
+ }
116
122
EnsureCollectionExists( ) ;
117
123
var subject = new ReIndexOperation( _collectionNamespace , _messageEncoderSettings )
118
124
{
119
125
WriteConcern = new WriteConcern ( 9 )
120
126
} ;
121
127
122
- async = false ;
123
128
var exception = Record. Exception( ( ) => ExecuteOperation ( subject , async ) ) ;
124
129
125
130
exception. Should( ) . BeOfType< MongoWriteConcernException> ( ) ;
You can’t perform that action at this time.
0 commit comments