summaryrefslogtreecommitdiff
path: root/jstests/auth
diff options
context:
space:
mode:
authorJason Carey <jcarey@argv.me>2017-09-29 12:18:53 -0400
committerJason Carey <jcarey@argv.me>2017-10-03 16:50:12 -0400
commitf23002e965d29158505575d09432faf403efcb56 (patch)
tree5794d12d94376b7cc55186862e4a43d850cab4d5 /jstests/auth
parent8a4b356682d9a3d39049c2d51ac4f10ed1e6d07e (diff)
downloadmongo-f23002e965d29158505575d09432faf403efcb56.tar.gz
SERVER-30848 make shell getMores use sessions
The shell should attach the logical session used to initiate cursors (via find or aggregate) and use it for successive getMores.
Diffstat (limited to 'jstests/auth')
-rw-r--r--jstests/auth/indexSystemUsers.js2
-rw-r--r--jstests/auth/list_local_sessions.js2
2 files changed, 2 insertions, 2 deletions
diff --git a/jstests/auth/indexSystemUsers.js b/jstests/auth/indexSystemUsers.js
index fd33e906974..55baae11327 100644
--- a/jstests/auth/indexSystemUsers.js
+++ b/jstests/auth/indexSystemUsers.js
@@ -28,7 +28,7 @@ var collectionInfosCursor = adminDB.runCommand("listCollections", {
}
});
-assert.eq([], new DBCommandCursor(adminDB.getMongo(), collectionInfosCursor).toArray());
+assert.eq([], new DBCommandCursor(adminDB, collectionInfosCursor).toArray());
adminDB.logout();
adminDB.auth('admin', 'x');
diff --git a/jstests/auth/list_local_sessions.js b/jstests/auth/list_local_sessions.js
index a82e8d6673f..40cc66d991e 100644
--- a/jstests/auth/list_local_sessions.js
+++ b/jstests/auth/list_local_sessions.js
@@ -1,4 +1,4 @@
-// All tests for the $listLocalSessions aggregateion stage.
+// All tests for the $listLocalSessions aggregation stage.
(function() {
'use strict';