Skip to content

Commit 3fb8b8b

Browse files
committed
CSHARP-2444: Disable failing command monitoring tests on 4.2.
1 parent 9ba82a6 commit 3fb8b8b

File tree

1 file changed

+11
-0
lines changed
  • tests/MongoDB.Driver.Tests/Specifications/command-monitoring

1 file changed

+11
-0
lines changed

tests/MongoDB.Driver.Tests/Specifications/command-monitoring/TestRunner.cs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,17 @@ public void RunTestDefinition(IEnumerable<BsonDocument> data, string databaseNam
125125
}
126126
}
127127

128+
// TODO: re-enable these tests once a decision has been made about how to deal with unexpected fields in the server response (see: CSHARP-2444)
129+
if (CoreTestConfiguration.ServerVersion >= new SemanticVersion(4, 1, 5, ""))
130+
{
131+
switch (definition["description"].AsString)
132+
{
133+
case "A successful insert one command with write errors":
134+
case "A successful insert many command with write errors":
135+
throw new SkipTestException("Test ignored because of CSHARP-2444");
136+
}
137+
}
138+
128139
var database = __client
129140
.GetDatabase(databaseName);
130141
var collection = database

0 commit comments

Comments
 (0)