summaryrefslogtreecommitdiff
path: root/jstests/change_streams
diff options
context:
space:
mode:
authorDaniel Gottlieb <daniel.gottlieb@mongodb.com>2018-12-20 10:32:11 -0500
committerDaniel Gottlieb <daniel.gottlieb@mongodb.com>2018-12-20 10:32:11 -0500
commitd0ff20fa00e17a30f2518d556147b178bbefab28 (patch)
tree546d39ee4612b98a7a365031c4673d0ed764a763 /jstests/change_streams
parentbf58b1ab2abfb2a3ab7a86c154f9f5954ed6f98c (diff)
downloadmongo-d0ff20fa00e17a30f2518d556147b178bbefab28.tar.gz
Revert "SERVER-36902 Update jsTests for new shell transaction API"
This reverts commit bf58b1ab2abfb2a3ab7a86c154f9f5954ed6f98c.
Diffstat (limited to 'jstests/change_streams')
-rw-r--r--jstests/change_streams/apply_ops.js12
-rw-r--r--jstests/change_streams/apply_ops_resumability.js10
2 files changed, 11 insertions, 11 deletions
diff --git a/jstests/change_streams/apply_ops.js b/jstests/change_streams/apply_ops.js
index 5212f16e14b..ee116d3495d 100644
--- a/jstests/change_streams/apply_ops.js
+++ b/jstests/change_streams/apply_ops.js
@@ -72,7 +72,7 @@
ns: {db: db.getName(), coll: coll.getName()},
operationType: "insert",
lsid: session.getSessionId(),
- txnNumber: session.getTxnNumber_forTesting(),
+ txnNumber: NumberLong(session._txnNumber),
},
{
documentKey: {_id: 2},
@@ -80,7 +80,7 @@
ns: {db: db.getName(), coll: coll.getName()},
operationType: "insert",
lsid: session.getSessionId(),
- txnNumber: session.getTxnNumber_forTesting(),
+ txnNumber: NumberLong(session._txnNumber),
},
{
documentKey: {_id: 1},
@@ -88,14 +88,14 @@
operationType: "update",
updateDescription: {removedFields: [], updatedFields: {a: 1}},
lsid: session.getSessionId(),
- txnNumber: session.getTxnNumber_forTesting(),
+ txnNumber: NumberLong(session._txnNumber),
},
{
documentKey: {_id: kDeletedDocumentId},
ns: {db: db.getName(), coll: coll.getName()},
operationType: "delete",
lsid: session.getSessionId(),
- txnNumber: session.getTxnNumber_forTesting(),
+ txnNumber: NumberLong(session._txnNumber),
},
{
operationType: "drop",
@@ -123,7 +123,7 @@
ns: {db: db.getName(), coll: otherCollName},
operationType: "insert",
lsid: session.getSessionId(),
- txnNumber: session.getTxnNumber_forTesting(),
+ txnNumber: NumberLong(session._txnNumber),
});
// Verify that a whole-db stream returns the expected sequence of changes, including the insert
@@ -141,7 +141,7 @@
ns: {db: otherDbName, coll: otherDbCollName},
operationType: "insert",
lsid: session.getSessionId(),
- txnNumber: session.getTxnNumber_forTesting(),
+ txnNumber: NumberLong(session._txnNumber),
});
// Verify that a whole-cluster stream returns the expected sequence of changes, including the
diff --git a/jstests/change_streams/apply_ops_resumability.js b/jstests/change_streams/apply_ops_resumability.js
index 619bd7152d6..a8d25d775d4 100644
--- a/jstests/change_streams/apply_ops_resumability.js
+++ b/jstests/change_streams/apply_ops_resumability.js
@@ -62,7 +62,7 @@
ns: {db: db.getName(), coll: coll.getName()},
operationType: "insert",
lsid: session.getSessionId(),
- txnNumber: session.getTxnNumber_forTesting(),
+ txnNumber: NumberLong(session._txnNumber),
},
{
documentKey: {_id: 2},
@@ -70,7 +70,7 @@
ns: {db: db.getName(), coll: coll.getName()},
operationType: "insert",
lsid: session.getSessionId(),
- txnNumber: session.getTxnNumber_forTesting(),
+ txnNumber: NumberLong(session._txnNumber),
},
{
documentKey: {_id: 1},
@@ -78,7 +78,7 @@
operationType: "update",
updateDescription: {removedFields: [], updatedFields: {a: 1}},
lsid: session.getSessionId(),
- txnNumber: session.getTxnNumber_forTesting(),
+ txnNumber: NumberLong(session._txnNumber),
},
{
documentKey: {_id: 3},
@@ -149,7 +149,7 @@
ns: {db: db.getName(), coll: otherCollName},
operationType: "insert",
lsid: session.getSessionId(),
- txnNumber: session.getTxnNumber_forTesting(),
+ txnNumber: NumberLong(session._txnNumber),
});
// Verify that a whole-db stream can be resumed from the middle of the transaction, and that it
@@ -169,7 +169,7 @@
ns: {db: otherDbName, coll: otherDbCollName},
operationType: "insert",
lsid: session.getSessionId(),
- txnNumber: session.getTxnNumber_forTesting(),
+ txnNumber: NumberLong(session._txnNumber),
});
// Verify that a whole-cluster stream can be resumed from the middle of the transaction, and