Permalink
Browse files

Fix sharding/authCommands.js test by not asking for a numeric write c…

…oncern when doing a write to config servers
  • Loading branch information...
1 parent 692222c commit 8dfa08c32ed52628cd7960b0c96fcc2a1ee34839 @stbrody stbrody committed Jan 8, 2014
Showing with 3 additions and 6 deletions.
  1. +3 −6 jstests/sharding/authCommands.js
@@ -24,14 +24,11 @@ var rwUser = 'rwUser';
var roUser = 'roUser';
var password = 'password';
-adminDB.createUser({user: rwUser, pwd: password, roles: jsTest.adminUserRoles},
- {w: st.rs0.numNodes, wtimeout: 30000} );
+adminDB.createUser({user: rwUser, pwd: password, roles: jsTest.adminUserRoles});
assert( adminDB.auth( rwUser, password ) );
-testDB.createUser({user: rwUser, pwd: password, roles: jsTest.basicUserRoles},
- {w: st.rs0.numNodes, wtimeout: 30000} );
-testDB.createUser({user: roUser, pwd: password, roles: jsTest.readOnlyUserRoles},
- {w: st.rs0.numNodes, wtimeout: 30000} );
+testDB.createUser({user: rwUser, pwd: password, roles: jsTest.basicUserRoles});
+testDB.createUser({user: roUser, pwd: password, roles: jsTest.readOnlyUserRoles});
authenticatedConn = new Mongo( mongos.host );
authenticatedConn.getDB( 'admin' ).auth( rwUser, password );

0 comments on commit 8dfa08c

Please sign in to comment.