summaryrefslogtreecommitdiff
path: root/jstests/auth
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/auth')
-rw-r--r--jstests/auth/getMore.js14
1 files changed, 0 insertions, 14 deletions
diff --git a/jstests/auth/getMore.js b/jstests/auth/getMore.js
index 00c150d59a0..83e427accd6 100644
--- a/jstests/auth/getMore.js
+++ b/jstests/auth/getMore.js
@@ -47,20 +47,6 @@ function runTest(conn) {
"read from another user's find cursor");
testDB.logout();
- // Test that "Mallory" cannot use a legacy find cursor created by "Alice".
- testDB.getMongo().forceReadMode("legacy");
- assert.eq(1, testDB.auth("Alice", "pwd"));
- let cursor = testDB.foo.find().batchSize(2);
- cursor.next();
- cursor.next();
- testDB.logout();
- assert.eq(1, testDB.auth("Mallory", "pwd"));
- assert.throws(function() {
- cursor.next();
- }, [], "read from another user's legacy find cursor");
- testDB.logout();
- testDB.getMongo().forceReadMode("commands");
-
// Test that "Mallory" cannot use an aggregation cursor created by "Alice".
assert.eq(1, testDB.auth("Alice", "pwd"));
res = assert.commandWorked(