summaryrefslogtreecommitdiff
path: root/jstests/auth/auth1.js
diff options
context:
space:
mode:
authorKristina <kristina@10gen.com>2011-09-30 13:11:03 -0400
committerKristina <kristina@10gen.com>2011-09-30 13:11:21 -0400
commita5cfd6af349660c81aa4d51400aa525423bffc18 (patch)
tree19ddc73890b065e6ffec69c0cd621942dfe01e13 /jstests/auth/auth1.js
parentce2148699b30f457c42461e29dd3a7c8ddd6eeda (diff)
downloadmongo-a5cfd6af349660c81aa4d51400aa525423bffc18.tar.gz
make getLastError require auth SERVER-3773
Diffstat (limited to 'jstests/auth/auth1.js')
-rw-r--r--jstests/auth/auth1.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/auth/auth1.js b/jstests/auth/auth1.js
index f52ff80d206..3d0a93c8f34 100644
--- a/jstests/auth/auth1.js
+++ b/jstests/auth/auth1.js
@@ -21,7 +21,7 @@ assert.throws( function() { t.findOne() }, [], "read without login" );
print("make sure we can't run certain commands w/out auth");
var errmsg = "need to login";
assert.eq(db.runCommand({eval : "function() { return 1; }"}).errmsg, errmsg);
-//assert.eq(db.runCommand({getLastError : 1}).errmsg, errmsg);
+assert.eq(db.runCommand({getLastError : 1}).errmsg, errmsg);
assert.eq(db.runCommand({whatsmyuri : 1}).errmsg, errmsg);
assert.eq(db.runCommand({availableQueryOptions : 1}).errmsg, errmsg);
assert.eq(db.adminCommand({getLog : 1}).errmsg, errmsg);