summaryrefslogtreecommitdiff
path: root/jstests/tool/dumprestore_auth.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/tool/dumprestore_auth.js')
-rw-r--r--jstests/tool/dumprestore_auth.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/tool/dumprestore_auth.js b/jstests/tool/dumprestore_auth.js
index b37ffee9acc..38792df8e4a 100644
--- a/jstests/tool/dumprestore_auth.js
+++ b/jstests/tool/dumprestore_auth.js
@@ -5,7 +5,7 @@ t = new ToolTest("dumprestore_auth", { auth : "" });
c = t.startDB("foo");
adminDB = c.getDB().getSiblingDB('admin');
-adminDB.addUser('admin', 'password', ['__system']);
+adminDB.addUser({user: 'admin', pwd: 'password', roles: ['__system']});
adminDB.auth('admin','password');
assert.eq(0 , c.count() , "setup1");