summaryrefslogtreecommitdiff
path: root/jstests/sharding/snapshot_find_mongos.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/sharding/snapshot_find_mongos.js')
-rw-r--r--jstests/sharding/snapshot_find_mongos.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/jstests/sharding/snapshot_find_mongos.js b/jstests/sharding/snapshot_find_mongos.js
index 8687654ac39..92b5b679730 100644
--- a/jstests/sharding/snapshot_find_mongos.js
+++ b/jstests/sharding/snapshot_find_mongos.js
@@ -4,6 +4,8 @@
(function() {
"use strict";
+ load("jstests/libs/global_snapshot_reads_util.js");
+
const dbName = "test";
const shardedCollName = "shardedColl";
const unshardedCollName = "unshardedColl";
@@ -57,6 +59,8 @@
// performed outside of the session.
assert.writeOK(mainDb[collName].insert({_id: 10}, {writeConcern: {w: "majority"}}));
+ verifyInvalidGetMoreAttempts(mainDb, sessionDb, collName, cursorId, txnNumber);
+
// Fetch the 6th document. This confirms that the transaction stash is preserved across
// multiple getMore invocations.
res = assert.commandWorked(sessionDb.runCommand({