diff --git a/source/command-logging-and-monitoring/tests/logging/unacknowledged-write.json b/source/command-logging-and-monitoring/tests/logging/unacknowledged-write.json index 21e247df66..3a11012795 100644 --- a/source/command-logging-and-monitoring/tests/logging/unacknowledged-write.json +++ b/source/command-logging-and-monitoring/tests/logging/unacknowledged-write.json @@ -53,11 +53,27 @@ "_id": 2 } } + }, + { + "name": "find", + "object": "collection", + "arguments": { + "filter": {} + }, + "expectResult": [ + { + "_id": 1 + }, + { + "_id": 2 + } + ] } ], "expectLogMessages": [ { "client": "client", + "ignoreExtraMessages": true, "messages": [ { "level": "debug", diff --git a/source/command-logging-and-monitoring/tests/logging/unacknowledged-write.yml b/source/command-logging-and-monitoring/tests/logging/unacknowledged-write.yml index 7d4847e0d9..5981412099 100644 --- a/source/command-logging-and-monitoring/tests/logging/unacknowledged-write.yml +++ b/source/command-logging-and-monitoring/tests/logging/unacknowledged-write.yml @@ -31,8 +31,18 @@ tests: object: *collection arguments: document: { _id: 2 } + # Force completion of the w: 0 write by executing a find on the same connection + - name: find + object: *collection + arguments: + filter: { } + expectResult: [ + { _id: 1 }, + { _id: 2 } + ] expectLogMessages: - client: *client + ignoreExtraMessages: true messages: - level: debug component: command diff --git a/source/command-logging-and-monitoring/tests/monitoring/unacknowledgedBulkWrite.json b/source/command-logging-and-monitoring/tests/monitoring/unacknowledgedBulkWrite.json index 4c16d6df11..8936743e8b 100644 --- a/source/command-logging-and-monitoring/tests/monitoring/unacknowledgedBulkWrite.json +++ b/source/command-logging-and-monitoring/tests/monitoring/unacknowledgedBulkWrite.json @@ -64,11 +64,29 @@ ], "ordered": false } + }, + { + "name": "find", + "object": "collection", + "arguments": { + "filter": {} + }, + "expectResult": [ + { + "_id": 1, + "x": 11 + }, + { + "_id": "unorderedBulkWriteInsertW0", + "x": 44 + } + ] } ], "expectEvents": [ { "client": "client", + "ignoreExtraEvents": true, "events": [ { "commandStartedEvent": { diff --git a/source/command-logging-and-monitoring/tests/monitoring/unacknowledgedBulkWrite.yml b/source/command-logging-and-monitoring/tests/monitoring/unacknowledgedBulkWrite.yml index d7c8ce0d0c..4cd4e30149 100644 --- a/source/command-logging-and-monitoring/tests/monitoring/unacknowledgedBulkWrite.yml +++ b/source/command-logging-and-monitoring/tests/monitoring/unacknowledgedBulkWrite.yml @@ -36,8 +36,18 @@ tests: - insertOne: document: { _id: "unorderedBulkWriteInsertW0", x: 44 } ordered: false + # Force completion of the w: 0 write by executing a find on the same connection + - name: find + object: *collection + arguments: + filter: { } + expectResult: [ + { _id: 1, x: 11 }, + { _id: "unorderedBulkWriteInsertW0", x: 44 } + ] expectEvents: - client: *client + ignoreExtraEvents: true events: - commandStartedEvent: command: