summaryrefslogtreecommitdiff
path: root/jstests/auth/readIndex.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/auth/readIndex.js')
-rw-r--r--jstests/auth/readIndex.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/jstests/auth/readIndex.js b/jstests/auth/readIndex.js
index 379d82e8ae8..8ef52d1b5e1 100644
--- a/jstests/auth/readIndex.js
+++ b/jstests/auth/readIndex.js
@@ -6,9 +6,9 @@ var testDB = conn.getDB("testdb");
testDB.foo.insert({a:1});
-testDB.addUser({user:'dbAdmin',
- pwd:'password',
- roles:['dbAdmin']});
+testDB.createUser({user:'dbAdmin',
+ pwd:'password',
+ roles:['dbAdmin']});
testDB.auth('dbAdmin', 'password');
testDB.foo.ensureIndex({a:1});