summaryrefslogtreecommitdiff
path: root/jstests/auth/profile.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/auth/profile.js')
-rw-r--r--jstests/auth/profile.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/jstests/auth/profile.js b/jstests/auth/profile.js
index 9b828c24470..43e32b0dc58 100644
--- a/jstests/auth/profile.js
+++ b/jstests/auth/profile.js
@@ -3,8 +3,8 @@ var conn = startMongodTest();
var db1 = conn.getDB("profile-a");
var db2 = db1.getSisterDB("profile-b");
var username = "user";
-db1.addUser({user:username, pwd: "password", roles: jsTest.basicUserRoles});
-db2.addUser({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) {