summaryrefslogtreecommitdiff
path: root/jstests/sharding/auth_slaveok_routing.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/sharding/auth_slaveok_routing.js')
-rw-r--r--jstests/sharding/auth_slaveok_routing.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/jstests/sharding/auth_slaveok_routing.js b/jstests/sharding/auth_slaveok_routing.js
index 4c17588978e..45533b9ae11 100644
--- a/jstests/sharding/auth_slaveok_routing.js
+++ b/jstests/sharding/auth_slaveok_routing.js
@@ -38,10 +38,10 @@ var nodeCount = replTest.nodes.length;
* is no admin user.
*/
var adminDB = mongos.getDB( 'admin' )
-adminDB.addUser('user', 'password', false);
+adminDB.addUser('user', 'password', jsTest.adminUserRoles);
adminDB.auth( 'user', 'password' );
var priAdminDB = replTest.getPrimary().getDB( 'admin' );
-priAdminDB.addUser( 'user', 'password', false, 3 );
+priAdminDB.addUser( 'user', 'password', jsTest.adminUserRoles, 3 );
coll.drop();
coll.setSlaveOk( true );