summaryrefslogtreecommitdiff
path: root/jstests/change_streams
diff options
context:
space:
mode:
authorLingzhi Deng <lingzhi.deng@mongodb.com>2019-06-04 10:17:16 -0400
committerLingzhi Deng <lingzhi.deng@mongodb.com>2019-06-04 11:06:39 -0400
commit603d97f23ff6836be5e325bf233524d977ea9d6d (patch)
treee087c41acc01eaf9694934c9bc20a61349dca321 /jstests/change_streams
parentf41d1675fcbfe3964f18b3fa529d4dbd84a1fc1e (diff)
downloadmongo-603d97f23ff6836be5e325bf233524d977ea9d6d.tar.gz
SERVER-40386: replace commitTransaction() used in jstests with commitTransaction_forTesting()
Diffstat (limited to 'jstests/change_streams')
-rw-r--r--jstests/change_streams/apply_ops.js2
-rw-r--r--jstests/change_streams/apply_ops_resumability.js2
2 files changed, 2 insertions, 2 deletions
diff --git a/jstests/change_streams/apply_ops.js b/jstests/change_streams/apply_ops.js
index 5212f16e14b..efc72104485 100644
--- a/jstests/change_streams/apply_ops.js
+++ b/jstests/change_streams/apply_ops.js
@@ -49,7 +49,7 @@
assert.commandWorked(sessionColl.deleteOne({_id: kDeletedDocumentId}));
- session.commitTransaction();
+ assert.commandWorked(session.commitTransaction_forTesting());
// Do applyOps on the collection that we care about. This is an "external" applyOps, though
// (not run as part of a transaction) so its entries should be skipped in the change
diff --git a/jstests/change_streams/apply_ops_resumability.js b/jstests/change_streams/apply_ops_resumability.js
index 619bd7152d6..7c61ed15792 100644
--- a/jstests/change_streams/apply_ops_resumability.js
+++ b/jstests/change_streams/apply_ops_resumability.js
@@ -43,7 +43,7 @@
assert.commandWorked(sessionColl.updateOne({_id: 1}, {$inc: {a: 1}}));
- session.commitTransaction();
+ assert.commandWorked(session.commitTransaction_forTesting());
// Now insert another document, not part of a transaction.
assert.commandWorked(coll.insert({_id: 3, a: 123}));