File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
Tests/MongoSwiftSyncTests Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -90,7 +90,7 @@ final class CrudTests: MongoSwiftTestCase {
9090 asType: UnifiedTestFile . self
9191 )
9292 let runner = try UnifiedTestRunner ( )
93- let skipList : [ String : [ String ] ] = [
93+ var skipList : [ String : [ String ] ] = [
9494 // libmongoc chose not to implement CDRIVER-3630 in anticipation of DRIVERS-1340,
9595 // so we cannot pass these tests for now.
9696 // TODO: DRIVERS-1340 unskip
@@ -106,6 +106,13 @@ final class CrudTests: MongoSwiftTestCase {
106106 " unacknowledged-bulkWrite-update-hint-clientError " : [ " * " ] ,
107107 " unacknowledged-bulkWrite-replace-hint-clientError " : [ " * " ]
108108 ]
109+ // Skipping due to a bug in server latest. TODO: SWIFT-1359 unskip
110+ let client = try MongoClient . makeTestClient ( )
111+ if try client. serverVersion ( ) >= ServerVersion ( major: 5 , minor: 1 , patch: 0 )
112+ && client. topologyType ( ) . isSharded
113+ {
114+ skipList [ " aggregate-out-readConcern " ] = [ " readConcern available with out stage " ]
115+ }
109116 try runner. runFiles ( files. map { $0. 1 } , skipTests: skipList)
110117 }
111118}
You can’t perform that action at this time.
0 commit comments