Skip to content

Commit 8bd3b1f

Browse files
authored
Skip failing test against latest sharded clusters (#676)
1 parent 26a530d commit 8bd3b1f

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

Tests/MongoSwiftSyncTests/CrudTests.swift

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)