diff options
author | Spencer T Brody <spencer@10gen.com> | 2013-11-06 14:49:35 -0500 |
---|---|---|
committer | Spencer T Brody <spencer@10gen.com> | 2013-11-06 17:11:39 -0500 |
commit | 49fd6dbb2b6d9432cb4d94aaf3e06ca6943042d6 (patch) | |
tree | 202e0c261a8fbac00b2f08e91849d1de04f0ffe3 /jstests/replsets/auth2.js | |
parent | f2ae6a0732ce5fdfe1a2aac8f2fc12e5a04a650c (diff) | |
download | mongo-49fd6dbb2b6d9432cb4d94aaf3e06ca6943042d6.tar.gz |
SERVER-11555 Replace all occurrences of addUser with createUser in jstests
Diffstat (limited to 'jstests/replsets/auth2.js')
-rw-r--r-- | jstests/replsets/auth2.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/jstests/replsets/auth2.js b/jstests/replsets/auth2.js index 7adb93a203e..7d8b329a4ff 100644 --- a/jstests/replsets/auth2.js +++ b/jstests/replsets/auth2.js @@ -84,7 +84,8 @@ var rs = setupReplSet(); var master = rs.getMaster(); print("add an admin user"); -master.getDB("admin").addUser({user: "foo", pwd: "bar", roles: jsTest.adminUserRoles},3); +master.getDB("admin").createUser({user: "foo", pwd: "bar", roles: jsTest.adminUserRoles}, + {w: 3, wtimeout: 30000}); m = rs.nodes[0]; print("starting 1 and 2 with key file"); |