diff --git a/specifications/command-logging-and-monitoring/tests/monitoring/unacknowledged-client-bulkWrite.json b/specifications/command-logging-and-monitoring/tests/monitoring/unacknowledged-client-bulkWrite.json index 61bb00726c0..14740cea349 100644 --- a/specifications/command-logging-and-monitoring/tests/monitoring/unacknowledged-client-bulkWrite.json +++ b/specifications/command-logging-and-monitoring/tests/monitoring/unacknowledged-client-bulkWrite.json @@ -95,29 +95,34 @@ "ordered": false }, "expectResult": { - "insertedCount": { - "$$unsetOrMatches": 0 - }, - "upsertedCount": { - "$$unsetOrMatches": 0 - }, - "matchedCount": { - "$$unsetOrMatches": 0 - }, - "modifiedCount": { - "$$unsetOrMatches": 0 - }, - "deletedCount": { - "$$unsetOrMatches": 0 - }, - "insertResults": { - "$$unsetOrMatches": {} - }, - "updateResults": { - "$$unsetOrMatches": {} - }, - "deleteResults": { - "$$unsetOrMatches": {} + "$$unsetOrMatches": { + "acknowledged": { + "$$unsetOrMatches": false + }, + "insertedCount": { + "$$unsetOrMatches": 0 + }, + "upsertedCount": { + "$$unsetOrMatches": 0 + }, + "matchedCount": { + "$$unsetOrMatches": 0 + }, + "modifiedCount": { + "$$unsetOrMatches": 0 + }, + "deletedCount": { + "$$unsetOrMatches": 0 + }, + "insertResults": { + "$$unsetOrMatches": {} + }, + "updateResults": { + "$$unsetOrMatches": {} + }, + "deleteResults": { + "$$unsetOrMatches": {} + } } } }, diff --git a/specifications/command-logging-and-monitoring/tests/monitoring/unacknowledged-client-bulkWrite.yml b/specifications/command-logging-and-monitoring/tests/monitoring/unacknowledged-client-bulkWrite.yml index 2d545259539..f43f097c3d6 100644 --- a/specifications/command-logging-and-monitoring/tests/monitoring/unacknowledged-client-bulkWrite.yml +++ b/specifications/command-logging-and-monitoring/tests/monitoring/unacknowledged-client-bulkWrite.yml @@ -52,22 +52,16 @@ tests: update: { $set: { x: 333 } } ordered: false expectResult: - insertedCount: - $$unsetOrMatches: 0 - upsertedCount: - $$unsetOrMatches: 0 - matchedCount: - $$unsetOrMatches: 0 - modifiedCount: - $$unsetOrMatches: 0 - deletedCount: - $$unsetOrMatches: 0 - insertResults: - $$unsetOrMatches: {} - updateResults: - $$unsetOrMatches: {} - deleteResults: - $$unsetOrMatches: {} + $$unsetOrMatches: + acknowledged: { $$unsetOrMatches: false } + insertedCount: { $$unsetOrMatches: 0 } + upsertedCount: { $$unsetOrMatches: 0 } + matchedCount: { $$unsetOrMatches: 0 } + modifiedCount: { $$unsetOrMatches: 0 } + deletedCount: { $$unsetOrMatches: 0 } + insertResults: { $$unsetOrMatches: {} } + updateResults: { $$unsetOrMatches: {} } + deleteResults: { $$unsetOrMatches: {} } # Force completion of the w:0 write by executing a find on the same connection - object: *collection name: find diff --git a/tests/MongoDB.Driver.Tests/UnifiedTestOperations/Matchers/UnifiedValueMatcher.cs b/tests/MongoDB.Driver.Tests/UnifiedTestOperations/Matchers/UnifiedValueMatcher.cs index 53b6d9f37ca..a31bb3ede08 100644 --- a/tests/MongoDB.Driver.Tests/UnifiedTestOperations/Matchers/UnifiedValueMatcher.cs +++ b/tests/MongoDB.Driver.Tests/UnifiedTestOperations/Matchers/UnifiedValueMatcher.cs @@ -19,7 +19,6 @@ using FluentAssertions; using MongoDB.Bson; using MongoDB.Bson.IO; -using MongoDB.Driver; using MongoDB.TestHelpers.XunitExtensions; using Xunit.Sdk; diff --git a/tests/MongoDB.Driver.Tests/UnifiedTestOperations/UnifiedClientBulkWriteOperation.cs b/tests/MongoDB.Driver.Tests/UnifiedTestOperations/UnifiedClientBulkWriteOperation.cs index cefe9c298bb..10e1adab54b 100644 --- a/tests/MongoDB.Driver.Tests/UnifiedTestOperations/UnifiedClientBulkWriteOperation.cs +++ b/tests/MongoDB.Driver.Tests/UnifiedTestOperations/UnifiedClientBulkWriteOperation.cs @@ -18,7 +18,6 @@ using System.Linq; using System.Threading; using System.Threading.Tasks; -using FluentAssertions; using MongoDB.Bson; namespace MongoDB.Driver.Tests.UnifiedTestOperations