diff options
Diffstat (limited to 'jstests/replsets/auth2.js')
-rw-r--r-- | jstests/replsets/auth2.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/replsets/auth2.js b/jstests/replsets/auth2.js index eb74b883c30..7adb93a203e 100644 --- a/jstests/replsets/auth2.js +++ b/jstests/replsets/auth2.js @@ -84,7 +84,7 @@ var rs = setupReplSet(); var master = rs.getMaster(); print("add an admin user"); -master.getDB("admin").addUser("foo","bar",jsTest.adminUserRoles,3); +master.getDB("admin").addUser({user: "foo", pwd: "bar", roles: jsTest.adminUserRoles},3); m = rs.nodes[0]; print("starting 1 and 2 with key file"); |