diff options
Diffstat (limited to 'jstests/auth/server-4892.js')
-rw-r--r-- | jstests/auth/server-4892.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/jstests/auth/server-4892.js b/jstests/auth/server-4892.js index bec2baf7e85..f8bafed82f3 100644 --- a/jstests/auth/server-4892.js +++ b/jstests/auth/server-4892.js @@ -49,9 +49,9 @@ with_mongod( ['--noauth'], function setupTest( mongod ) { conn = new Mongo( mongod.host ); admin = conn.getDB( 'admin' ); somedb = conn.getDB( 'somedb' ); - admin.addUser({user: 'admin', pwd: 'admin', roles: jsTest.adminUserRoles}); + admin.createUser({user: 'admin', pwd: 'admin', roles: jsTest.adminUserRoles}); admin.auth('admin', 'admin'); - somedb.addUser({user: 'frim', pwd: 'fram', roles: jsTest.basicUserRoles}); + somedb.createUser({user: 'frim', pwd: 'fram', roles: jsTest.basicUserRoles}); somedb.data.drop(); for (var i = 0; i < 10; ++i) { somedb.data.insert( { val: i } ); |