Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

buildbot fix slaveok_routing test

  • Loading branch information...
commit 5b1214043101923f530ab291f5b1e7f93b9547f6 1 parent e9faeb9
@stbrody stbrody authored
Showing with 4 additions and 1 deletion.
  1. +4 −1 jstests/sharding/slaveok_routing.js
View
5 jstests/sharding/slaveok_routing.js
@@ -33,8 +33,11 @@ var nodeCount = replTest.nodes.length;
* connections to access the server from localhost connections if there
* is no admin user.
*/
+var adminDB = mongos.getDB( 'admin' )
+adminDB.addUser( 'user', 'password', false, 3 );
+adminDB.auth( 'user', 'password' );
var priAdminDB = replTest.getPrimary().getDB( 'admin' );
-priAdminDB.addUser( 'user', 'user', false, 3 );
+priAdminDB.addUser( 'user', 'password', false, 3 );
coll.drop();
coll.setSlaveOk( true );
Please sign in to comment.
Something went wrong with that request. Please try again.