summaryrefslogtreecommitdiff
path: root/jstests/noPassthrough/write_change_stream_pit_preimage_in_transaction.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/noPassthrough/write_change_stream_pit_preimage_in_transaction.js')
-rw-r--r--jstests/noPassthrough/write_change_stream_pit_preimage_in_transaction.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/noPassthrough/write_change_stream_pit_preimage_in_transaction.js b/jstests/noPassthrough/write_change_stream_pit_preimage_in_transaction.js
index 3801e371b0d..1b237ea9fb8 100644
--- a/jstests/noPassthrough/write_change_stream_pit_preimage_in_transaction.js
+++ b/jstests/noPassthrough/write_change_stream_pit_preimage_in_transaction.js
@@ -120,7 +120,7 @@ function assertDocumentInsertedAtTimestamp(commitTimestamp, insertedDocumentId)
// collection 'coll' was written at timestamp 'commitTimestamp'.
function assertDocumentPreImageWrittenAtTimestamp(commitTimestamp, modifiedDocumentId) {
const beforeCommitTimestamp = getPreviousTimestampValue(commitTimestamp);
- const preImagesCollection = getPreImagesCollection(testDB);
+ const preImagesCollection = getPreImagesCollection(testDB.getMongo());
assert.eq(0,
preImagesCollection.find({"preImage._id": modifiedDocumentId})
.readConcern("snapshot", beforeCommitTimestamp)