diff options
Diffstat (limited to 'jstests/auth/profile.js')
-rw-r--r-- | jstests/auth/profile.js | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/jstests/auth/profile.js b/jstests/auth/profile.js index f24a303229f..41a8d86f8a9 100644 --- a/jstests/auth/profile.js +++ b/jstests/auth/profile.js @@ -3,12 +3,11 @@ var conn = MongoRunner.runMongod(); var db1 = conn.getDB("profile-a"); var db2 = db1.getSisterDB("profile-b"); var username = "user"; -db1.createUser({user:username, pwd: "password", roles: jsTest.basicUserRoles}); -db2.createUser({user:username, pwd: "password", roles: jsTest.basicUserRoles}); - +db1.createUser({user: username, pwd: "password", roles: jsTest.basicUserRoles}); +db2.createUser({user: username, pwd: "password", roles: jsTest.basicUserRoles}); function lastOp(db) { - return db.system.profile.find().sort( { $natural:-1 } ).next(); + return db.system.profile.find().sort({$natural: -1}).next(); } function principalName(user, db) { |